Hi.

I'm looking for some help dealing with pixel coordinates and the map
wrapping around the -180 or 180 degrees meridian...

http://martinspc.homeip.net:8080/googlemapsapi.martinpearman.co.uk/infusions/google_maps_api/basic_page.php?map_id=5

Everything works as expected with sets of markers that are not located
near to the meridian - choose 'Panorama Camera' or 'Tines markers'
from the drop down list and it works fine.

Choose 'Random 850' though and the code fails.
Adding various GLog statements to my code i've established that my
routine which detects if a marker lies within the map bounds is
failing.

http://martinspc.homeip.net:8080/googlemapsapi.martinpearman.co.uk/maps/clustermarker/ClusterMarker/ClusterMarker.js

Lines 38 to 199 contain the refresh() method and lines 78 to 113
contain the code which (in theory) detects if a marker is within the
map bounds.

Look at the GLog output when you select Random 850 and you'll see each
marker's pixel coordinates, the map SW pixel coordinates and the map
NE pixel coordinate.

Depending upon the zoom level of the map you'll see that often the map
NE point is actually more westerly than the map SW point!

Has anyone got any idea how i can fix it?

Thanks.

Martin.

--~--~---------~--~----~------------~-------~--~----~
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