Add a note about using the collection in addLayer

This commit is contained in:
Bart van den Eijnden
2015-05-10 12:20:02 +02:00
parent 829337c219
commit 2724292de1

View File

@@ -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.
* @api stable
*/