On Sep 1, 5:06 pm, yodark <[EMAIL PROTECTED]> wrote: > > var point = new GLatLng(48.19983,4.142305); > mymarker = map.addOverlay(new GMarker(point)); > > then > mymarker.setLatLng(new GLatLng(48.19983, 4.142315)); > but it doesn't work...
map.addOverlay doesn't return anything, certainly not a marker. It's the "new GMarker" which does that. You need to assign that marker to a variable so that you can move it. var mymarker = new GMarker(point); map.addOverlay(mymarker); mymarker.setLatLng(...); Andrew --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
