Merge pull request #3682 from bartvde/api-addlayer
Add a note about using the collection in addLayer
This commit is contained in:
+3
-1
@@ -503,7 +503,9 @@ ol.Map.prototype.addInteraction = function(interaction) {
|
|||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Adds the given layer to the top of this map.
|
* Adds the given layer to the top of this map. If you want to add a layer
|
||||||
|
* elsewhere in the stack, use `getLayers()` and the methods available on
|
||||||
|
* {@link ol.Collection}.
|
||||||
* @param {ol.layer.Base} layer Layer.
|
* @param {ol.layer.Base} layer Layer.
|
||||||
* @api stable
|
* @api stable
|
||||||
*/
|
*/
|
||||||
|
|||||||
Reference in New Issue
Block a user