Tag Info

New answers tagged

1

I finally made it with a little extension of the ol.Map object: if (ol.Map.prototype.getLayer === undefined) { ol.Map.prototype.getLayer = function (id) { var layer; this.getLayers().forEach(function (lyr) { if (id == lyr.get('id')) { layer = lyr; } }); return layer; ...


2

This is currently the case, see: https://github.com/openlayers/ol3/issues/2907 for the relevant discussion



Top 50 recent answers are included