Parsing and plotting GeoJSON in Google Maps v2 Android

余生颓废 提交于 2019-12-07 15:55:42

问题


I have a nice big 27 MB geojson file lying on my SD Card. I has got a large number of features, geometry etc. As I was searching the web I didn't find any support for GeoJSON and Shape Files in Google Maps in Android natively. I want to plot all the geometry on the map (we can optimize it later to show some of the geometry) like point, line, polygon etc.

Do I need to write a parser on my own or did I fail to find support of geojson in Google Maps API for Android?


回答1:


Try using the Google Maps Android API utility library. It contains classes that will parse and handle your GeoJSON data. https://github.com/googlemaps/android-maps-utils



来源:https://stackoverflow.com/questions/30300904/parsing-and-plotting-geojson-in-google-maps-v2-android

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!