Hi...
My problem is that i can not add any html which contains of lat and
lng information to marker but for a simple html same as: [var myhtml =
'Hello World'] is possible but for this kind of html can NOT: [var
myHtml = "Latitude: " + latlng.lat() + "<br/>Longitude: " + latlng.lng
();]
after running the page....when i click on the marker nothing happens!
example code:
function initialize() {
if (GBrowserIsCompatible()) {
var map = new GMap2(document.getElementById("map"));
map.setCenter(new GLatLng(30.86, -96.98), 16);
var center = new GLatLng(30.86, -96.98);
var marker = new GMarker(center, {draggable: true});
map.addOverlay(marker);
var myHtml = "Latitude: " + latlng.lat() + "<br/>Longitude: " +
latlng.lng();
GEvent.addListener(marker, "click", function() {
marker.openInfoWindowHtml(html);
});
map.enableScrollWheelZoom();
}
}
------------------------------------------
so my question is that, is it possible to assign any lat and lng
position to marker?
Greatly Obliged
Ehsan
Ph.D candidate of GIS and Geomatica Engineering
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---