ZoomAndCentreMarkers

May 26, 2009 at 9:05 AM

Hi radioman,  can you pls exclude markers where IsVisible = false from the inclusion of the min/max lat/lng rectangle calculation.

Thanks,

Coordinator
May 26, 2009 at 9:11 AM

?

May 26, 2009 at 10:20 AM

when you zoom and centre to a layer there may be markers that are not visible. the calculaton you have that calculates the min/max long/lat rectange includes all markers for a given layer.  I have changed my client code to calc this rectangle by excluding markers where Visible is false.  so the max zoom level for the markers correcly zooms to the required level for only the visible zooms. but for completeness, i suggest that the condition is included in the core. (its only a single line change)

thanks

 

Coordinator
May 26, 2009 at 12:14 PM

done!

May 26, 2009 at 12:32 PM

thanks :)