[OpenLayers-Dev] Use layer.inRange or layer.calculateInRange() ?

Ivan Grcic ivan.grcic at geofoto.hr
Thu Aug 20 04:55:53 EDT 2009


Hi, quick question:

whenever we have to exam layer's visibility we have to test inRange param.

I saw that calculateInRange is called every time in map.moveTo() fn,
and it sets layer.inRange param accordingly.

Is it safe to just take inRange param, or its better to call
calculateInRange() every time?

Thank you,

cheers

-- 
Ivan Grcic



More information about the Dev mailing list