Hi,
It's all optimization. As you can see the letter "i" is much thinner then the number "0". I think about 80% thinner so the javascript code is 80% faster:) If the question wasn't a joke, the "i" should be an "0" it's copy&paste error.
Regards,
Slawomir

Am 18.02.2011 12:41, schrieb Jan Tappenbeck:
Am 18.02.2011 10:53, schrieb Slawomir Messner:
Hi,
http://dev.openlayers.org/releases/OpenLayers-2.10/doc/apidocs/files/OpenLayers/Map-js.html#OpenLayers.Map.getLayersByName

var layers = Map.getLayersByName(name);
if(layers.length > 0) {
layers[0].setVisiblity(true);
layers[i].redraw();
}

hi !

but why layers[0] and in the other layers[0] - the letter "i" ?????

regards Jan :-)

_______________________________________________
Users mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/openlayers-users


_______________________________________________
Users mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/openlayers-users

Reply via email to