我正在编写一个应用程序,用户可以在Google Maps地图中指定一个位置(使用Google Maps API)。 我抢的位置:协调Google地图和Google静态地图之间的差异
google.maps.event.addListener(my_map, 'click', function(mouseEvent){
var position = mouseEvent.latLng;
//position = 41.57187486787156, 0.609094047546364
});
然后,在另一页,我使用谷歌静态地图使用的坐标所有标记的位置显示图像从用户标记点抓起:
<img alt="map image" src="http://maps.googleapis.com/maps/api/staticmap?sensor=false&size=550x380&markers=label:A|41.57187486787156, 0.609094047546364">
谷歌静态地图向南显示标记。
你能指出我在哪里记录? –
https://developers.google.com/maps/documentation/staticmaps/#Latlons –
谢谢!这解释了抵消 –