Accessing Maptiler tiles

20 views
Skip to first unread message

Steven Sarens

unread,
Jul 23, 2023, 11:34:00 AM7/23/23
to osmdroid
Hi,

In the code of my Java Android navigation app I try to acceds Maptiler tiles with the following code (API key is fictional. I do have a real one):

OnlineTileSourceBase tileSource = new XYTileSource("Maptiler Ocean",
0, 19, 256, ".png",
new String[]{"https://api.maptiler.com/maps/ocean/{z}/{x}/{y}?key=UXvt3pF3tKGsuyrltyhA"});
mapOSM.setTileSource(tileSource);


The map background in my app stay blank. I have no problem downloading (for test purposes) and displaying Mapnik tiles directly from the OSM server. In that case I just use:

mapOSM.setTileSource(TileSourceFactory.MAPNIK);

Does anyone know what could be wrong with the Maptiler code?

Reply all
Reply to author
Forward
0 new messages