On Dec 31, 1:12 pm, Philipp <[email protected]> wrote: > Hi > > Thanks a lot for your replies. > > I tried to get it working but wasn't successful.
Did you check the error messages? "google.maps.GLatLng is not a constructor" Try using google.maps.LatLng -- the initial G is omitted: see the blue box at http://code.google.com/apis/maps/documentation/reference.html Bear in mind that your line map.GMarker(new google.maps.GLatLng(47.76744843, 13.01871967)); doesn't actually do anything useful, as GMarker is not a property of map. Best just remove it entirely. The next line map.addOverlay(new google.maps.GMarker(GLatLng(47.76744843, 13.01871967))); contains an error because GLatLng is not a function, you need to construct it as an object: map.addOverlay( new google.maps.Marker( new google.maps.LatLng(47.76744843, 13.01871967) ) ); [Lines split for clarity] The easy way to follow the examples is to use them as written and then replace the "G" in Google's objects with "google.maps.", including the dot. 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.
