Why can't i give these lat and long values to google map?
I am using google maps but i can't get map marker for these kind of lat and long values.
Tirunelv开发者_如何学编程eli Latitude:8.44 N
Longitude:77.44 E
. How to convert these to values which can be used by google maps?
I used this but there is no place in the map view area,
function initialize() {
if (GBrowserIsCompatible()) {
var map = new GMap2(document.getElementById("map_canvas"));
map.setCenter(new GLatLng(8.44, 77.44), 13);
var marker = new GMarker(new GLatLng(8.44, 77.44));
map.addOverlay(marker);
map.setUIToDefault();
}
}
<body onload="initialize()" onunload="GUnload()">
You should just remove N
and E
.
Valid values are just floats with dot (NOT with coma!).
latitude: 8.44
longitude: 77.44
精彩评论