From 2724292de1ed9122477f6414e836d3459a35e1ac Mon Sep 17 00:00:00 2001 From: Bart van den Eijnden Date: Sun, 10 May 2015 12:20:02 +0200 Subject: [PATCH] Add a note about using the collection in addLayer --- src/ol/map.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/ol/map.js b/src/ol/map.js index eb6abad3af..ebd33d7a5e 100644 --- a/src/ol/map.js +++ b/src/ol/map.js @@ -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 */