Remove map from OverlayOptions
This commit is contained in:
@@ -60,7 +60,6 @@
|
||||
* Object literal with config options for the overlay.
|
||||
* @typedef {Object} ol.OverlayOptions
|
||||
* @property {Element|undefined} element The overlay element.
|
||||
* @property {ol.Map|undefined} map The map to overlay onto.
|
||||
* @property {ol.Coordinate|undefined} position The overlay position in map
|
||||
* projection.
|
||||
* @property {ol.OverlayPositioning|undefined} positioning Positioning.
|
||||
|
||||
@@ -42,7 +42,6 @@ ol.OverlayPositioning = {
|
||||
* Example:
|
||||
*
|
||||
* var popup = new ol.Overlay({
|
||||
* map: map,
|
||||
* element: document.getElementById('popup')
|
||||
* });
|
||||
* popup.setPosition(coordinate);
|
||||
@@ -110,9 +109,6 @@ ol.Overlay = function(options) {
|
||||
if (goog.isDef(options.positioning)) {
|
||||
this.setPositioning(options.positioning);
|
||||
}
|
||||
if (goog.isDef(options.map)) {
|
||||
this.setMap(options.map);
|
||||
}
|
||||
|
||||
};
|
||||
goog.inherits(ol.Overlay, ol.Object);
|
||||
|
||||
Reference in New Issue
Block a user