On 30 April 2011 12:11, Sasso <[email protected]> wrote: > ok, firstly im using a mysql database for the markers and ive follewed > google own turtorials to get this far, > my problem is when the markers show up, they all aren't in the correct > positon and when i click on them the map zooms up and displays the > following in the background; > "we are sorry, but we don't have maps at this zoom level for this > region. try zooming out for a broader look"
How to debug: use Firefox with Firebug. The markers are in the wrong place, so look at their creation. Put a breakpoint on this line var marker = createMarker(point, name, address, phone, url, type); so you can test what's being passed to the createMarker function. That shows that "point" for the first marker is (52.235764,NaN). The NaN is supposed to be the Floated value of the lng attribute. So then you look at the data to find what that attribute is: <markers><marker ... lat="52.235764" lng="" type="Club" /> It shouldn't be an empty string. In fact all markers are the same, which leads me to suspect that your data output is wrong. Perhaps you have called your database column "lon" and have attempted to output the value of column "lng". -- You received this message because you are subscribed to the Google Groups "Google Maps API V2" 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.
