Question

After having integrated the dealer locator with Google Maps v3, I found some places got a problem especially in Canada when longitude start with a negative value.

Example

Red Deer, AB, Canada
Lat : 52.268112
Long : -113.811239

Google Maps will point to somewhere in the Pacific Ocean.

Dealer page : link

Source code : https://developers.google.com/maps/articles/phpsqlajax_v3

Was it helpful?

Solution

Doesn't seems to be a problem with coordinates. For me its plotting at Red Deer exactly. How are you loading these coordinates (comma separated text or iterating through an array)?. Seems like something going wrong with the data being passed. I too faced similar issue when passed data as comma separated which contained some odd pairs.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top