开发者

Why can't i give these lat and long values to google map?

开发者 https://www.devze.com 2023-01-11 16:00 出处:网络
I am using google maps but i can\'t get map marker for these kind of lat and long values. Tirunelv开发者_如何学编程eliLatitude:8.44 NLongitude:77.44 E. How to convert these to values which can be use

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

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号