On Dec 1, 12:08 pm, CSerra <[email protected]> wrote: > Hi, > > I have a WebPart that contais a Google Map and I'm using javascript > to build it. > > In the application, the user can add a marker and save it on a > sharepoint list. > I retrieve the marker coordinates through the GClientGeocoder. And > the getLocations method is being called on the marker "dragend" event. > > When a user search in the database (list) for markers, I build the > markers(GMarker) and add then to the map (addOverlay). > > The issue is that when a user creates a marker and put it on the > desired position, the geocoder returns his coordinates, then it is > saved. But when retrieving from the list, and adding it to the map, > the marker is placed on a different position, it is placed in the > middle of the street, even if the marker and its coordinates whore > saved at the top of a building for example. > > Is that a known problemn with the addOverlay method or perhaps I`m > doing something wrong?
Why are you calling GClientGeocoder on that position? The user put it where he wanted it, the GClientGeocoder is going to perform a reverse geocode on it and return the nearest known address, which is not likely to be where he clicked. Please read the posting guidelines and post a link to your map that shows the problem if my guess above is not correct: http://groups.google.com/group/google-maps-api/web/suggested-posting-guidelines http://groups.google.com/group/Google-Maps-API/web/why-including-a-link-is-critical -- Larry > > Regards, > > Caio Serra -- 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.
