I have a source for tiles as an url and want to add these to my map. I am able to do this with Google Map and OSMDroid, but I do not know how to figure it out using Mapbox.
My url has the format "http...mysource..x=..y=..z=.."
I have seen a solution for web, but I do not find such an approach for mobile.
I assume you have a URL for a tile server such as
http://server/tiles/{z}/{x}/{y}.png
If so, please update your question.Please see this Mapbox example, https://www.mapbox.com/android-sdk/examples/custom-raster/ to add in a custom Mapbox Style. Note the parameter for
setStyleUrl
. Open up that json file and inspect it.You will then need to create two JSON files. See this project (which is for iOS, but the JSON files are identical for Android, Web, and iOS.).
tile.json
sampleMapbox Style JSON, put this in the parameter for
setStyleUrl()