地图相关问题

来源:互联网 发布:mac ros 编辑:程序博客网 时间:2024/06/06 08:45

1)获取城市边界点的geojson

来自
https://gis.stackexchange.com/questions/183248/how-to-get-polygon-boundaries-of-city-in-json-from-google-maps-api

You can get polygon coordenates in json for using with googlemaps using openstreetmap. Go to http://nominatim.openstreetmap.org/ search a place like "Partido de Ituzaingó"click on "details"Look for OSM ID and copy it (control+c), example: 2018776paste the ID in http://polygons.openstreetmap.fr/index.py and download the polygon

2)google地图无vpn时使用不了

Web 项目的话:把 http://maps.googleapis.com/maps/api/js 换成 http://ditu.google.cn/maps/api/js 试试看