Merge pull request #3048 from elemoine/drag-features

Add a drag-features example
This commit is contained in:
Éric Lemoine
2014-12-19 08:49:11 +01:00
18 changed files with 628 additions and 112 deletions

View File

@@ -645,6 +645,19 @@ goog.exportProperty(
ol.Map.prototype.getTarget);
/**
* Get the DOM element into which this map is rendered. In contrast to
* `getTarget` this method always return an `Element`, or `null` if the
* map has no target.
* @return {Element} The element that the map is rendered in.
* @api
*/
ol.Map.prototype.getTargetElement = function() {
var target = this.getTarget();
return goog.isDef(target) ? goog.dom.getElement(target) : null;
};
/**
* @param {ol.Pixel} pixel Pixel.
* @return {ol.Coordinate} Coordinate.