android - Mapbox GL using external maps -


i want use mapbox gl in android application. service going released , have tricky question using renderer.

i renderer itself, want use own maps data in application (not data, offered mapbox , paid). instance, want parse openstreetmaps data on own, customise somehow , put inside of renderer show in application.

and question: possible use own maps data while using mapbox gl? or can used mapbox data?

thank in advance help. maybe know other well-done solutions problem? thing is, want have vector tiles, not raster ones. , project planned developed ios later..

you can use mapbox open-source sdk own tiles. mapbox native renderer android, ios or node.js can used directly tiles hosted outside of mapbox.com platform.

see sample mobile app "osm2vectortiles" loading vector tiles custom server or locally embedded mbtiles.

the trick point style attribute in api own json style file - requests vector tiles own server. example: see https://gist.github.com/klokan/3eee87899644f5d82b3946bf0cd1e176

see project http://www.openmaptiles.org/, can download ready use vector tiles made openstreetmap - or check documentation of project on how generate own customised vector tiles.

hosting of vector tiles described @ https://openmaptiles.org/docs/ or https://gis.stackexchange.com/questions/125037/self-hosting-mapbox-vector-tiles

you may need host somewhere assets (font glyphs + sprites) , json style - or embed these directly mobile app.

if want rasterize vector tiles same json style on server - web-application compatible old web clients (leaflet, ...) or static maps or print output same look&feel mobile app maps, can check https://github.com/klokantech/tileserver-gl


Comments

Popular posts from this blog

qt - Using float or double for own QML classes -

Create Outlook appointment via C# .Net -

ios - Swift Array Resetting Itself -