Merge pull request #4268 from jonataswalker/get-overlay-by-id

Add method for retrieving ol.Overlay by id
This commit is contained in:
Andreas Hocevar
2015-10-14 22:12:59 +02:00
5 changed files with 194 additions and 10 deletions
+11 -1
View File
@@ -309,7 +309,8 @@ olx.MapOptions.prototype.view;
/**
* Object literal with config options for the overlay.
* @typedef {{element: (Element|undefined),
* @typedef {{id: (number|string|undefined),
* element: (Element|undefined),
* offset: (Array.<number>|undefined),
* position: (ol.Coordinate|undefined),
* positioning: (ol.OverlayPositioning|string|undefined),
@@ -323,6 +324,15 @@ olx.MapOptions.prototype.view;
olx.OverlayOptions;
/**
* Set the overlay id. The overlay id can be used with the
* {@link ol.Map#getOverlayById} method.
* @type {number|string|undefined}
* @api
*/
olx.OverlayOptions.prototype.id;
/**
* The overlay element.
* @type {Element|undefined}