On Nov 1, 8:50 pm, Alejo83 <[EMAIL PROTECTED]> wrote:

> I need to calculate the center of the map and the appropiate zoom/
> scale on server-side because I want to show aproximately 50 markers
> and 50 polylines, and until I have not processed all the JSON file and
> painted all the markers over the map I can't get the center and
> appropiate zoom/scale. Maybe I could loop the JSON first, only
> obtaining lat and lng of each marker, and center the map, then,
> afterwards, paint all the markers.


So you don't do the calculations in advance, that makes me even more
shamed.



>
> The main important thing I want to get is the visual effect for the
> final user: first of all the map is loaded, with all its tiles, then,
> afterwards, all the markers/polylines are painted over the map.
>

I will give you an additional present. This method will take care that
your markers are not hidden under top border or under zoom slider.

http://esa.ilmari.googlepages.com/showbounds.htm


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google Maps API" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Maps-API?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to