问题描述
我正在使用Google Maps API。我发现已经绘制了伦敦运输形状和伦敦自治区形状。是否有可能获得确切的坐标如何完成,甚至使用API重新创建这些形状?
伦敦交通地图 -
代码段:
$ b
我正在使用Google Maps API。我发现已经绘制了伦敦运输形状和伦敦自治区形状。是否有可能获得确切的坐标如何完成,甚至使用API重新创建这些形状?
伦敦交通地图 -
代码段:
$ b
至于伊斯灵顿自治市地图,那是一个真正的谷歌地图,你无法从谷歌,你需要找到另一个来源。
I'm working with Google Maps API. I found that there are already drawn London transport shapes and London borough shapes. Is it possible to get exact coordinates how it's done and even recreate these shapes using API?
London Transport Map - https://www.google.com/maps/d/u/0/viewer?mid=1eIjWEQyO-PchgJUttxBBkYqvPxE&ll=51.49280340511744%2C-0.17372399999999288&z=11
Boroughhttps://www.google.co.uk/maps/place/London+Borough+of+Islington
The London Transportation Map is a "Google MyMap", those if public can have their data exported as KML/KMZ and shown on a Google Maps Javascript API v3 KmlLayer
code snippet:
function initialize() { var map = new google.maps.Map(document.getElementById("map_canvas")); layer = new google.maps.KmlLayer({ map: map, url: "http://www.google.com/maps/d/u/0/kml?mid=1eIjWEQyO-PchgJUttxBBkYqvPxE" }) } google.maps.event.addDomListener(window, "load", initialize);
html, body, #map_canvas { height: 100%; width: 100%; margin: 0px; padding: 0px }
<script src="https://maps.googleapis.com/maps/api/js"></script> <div id="map_canvas"></div>
As for the Borough of Islington map, that is a "real" Google Map", you can't get that data from Google, you need to find another source.
这篇关于我能得到伦敦地区的确切坐标并在代码中使用它们吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!