-
Notifications
You must be signed in to change notification settings - Fork 1.3k
How to use external vector tile source #1901
Comments
As you learned from #1900, the only vector tile format that Mapbox GL knows how to render is the one following our spec. That said, it doesn't necessary need to fetch the tiles from Mapbox servers. You can generate your vector tiles from whatever source of data you have and point Mapbox GL to it using a custom style. Here is where we point to our source file on the "Dark" style. You can replace it with something like And here is how a Finally, you don't need to get the vector tiles from the network via HTTP. You could, for instance, get it from a SQLite database on the disk. Mapbox GL uses an abstraction called You could implement you own I'm more experienced with Mapbox GL as used on Linux Desktop/Server or OSX. I guess for Android will not be so different. I'm not sure if Android is exposing the |
@tmpsantos Eventually when the offline maps features land it will be possible to load from a MBTiles files. |
some links are moved now . can you help me to find some guides for FileSource implementation ? or any other offline vector tile data ? |
As far as I can tell, here is the test file: Not having dug this thoroughly, the API allows you to modify the baseURL, meaning, where the maps will be retrieved from via Update: Update #2: |
I am working on android application and want to implement mapbox gl in it.
But I don't want to use Mapbox maps data, I want to parse OSM on my own and use it as data source.
In this issue #1900 I was asking if there is a possibility to implement my idea and it was told that this is possible. The only thing I have to think of is vector tile source that conforms to the Mapbox Vector Tile Spec.
So now the question:
How can I use my own new vector tile source with Mapbox GL in Android (in the future) and iOS? How can it be implemented? Are there any tutorials / examples about it?
IMPORTANT: I am not talking about data overlaid on top of base maps as in the answer #1900 . The question is about using entirely different source of maps data with mapbox gl native renderer.
Thanks for help.
The text was updated successfully, but these errors were encountered: