2

我一直在浏览文档,但找不到我要找的东西。

我需要找到地图上点击点的时区偏移量(例如 GMT +2:00)。我需要的只是+2部分。这是我到目前为止所拥有的:

google.maps.event.addListener(map, 'click', function(event) {
    marker = new google.maps.Marker({position: event.latLng, map: map});
    alert(event.latLng);
    alert(event.time_zone);
    var contentString = 'test';
    var infowindow = new google.maps.InfoWindow({content: contentString});  
    infowindow.open(map,marker);

});
4

0 回答 0