[OpenLayers-Users] changing style of a WFS layer

Christopher Schmidt crschmidt at metacarta.com
Tue Nov 25 10:50:55 EST 2008


On Tue, Nov 25, 2008 at 10:46:32AM -0500, Alexandre Dube wrote:
> I'm glad it worked.  But to my eyes there seems to be a flaw in this 
> solution : performance.  In the example I gave you, there was a need of 
> calculating the radius for each features because of the cluster 
> strategy.  But for you, triggering map.getZoom() for each features that 
> will end up being all at the same size is pretty useless.

map.getZoom() is just a property access. There's no significant speed
penalty to using it multiple times like this.

Regards,
-- 
Christopher Schmidt
MetaCarta



More information about the Users mailing list