Hi,
Is there a way to add a marker point to the attached Google Map like:
GMap.addOverlay(new GMarker(new GLatLng(Lat,Lng)));
I can get the map attached well on right position and zoom but adding an overlay gives me an error: GMap.addOverlay is not a function
My Code:
var opt = geocoder.getLocations(addr, function(locations) {
for (var i=0; locations && locations.Placemark && i < locations.Placemark.length; i++) {
Lat = locations.Placemark[i].Point.coordinates[1].toString();
Lng = locations.Placemark[i].Point.coordinates[0].toString();
}
var opts = {
center: new google.maps.LatLng(Lat,Lng),
zoom: 16,
mapTypeId: google.maps.MapTypeId.ROADMAP
};
GMap = tabbarContact.cells("c5").attachMap(opts);
GMap.addOverlay(new GMarker(new GLatLng(Lat,Lng)));
});
Thanks for your help,
FranX