[OpenLayers-Users] Re: Controll the Layervisibility by code

Slawomir Messner slawomir.messner at staff.uni-marburg.de
Fri Feb 18 07:18:51 EST 2011


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
> Users at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/openlayers-users
>



More information about the Users mailing list