This is a static archive of our old OpenStreetMap Help Site. Please post any new questions and answers at community.osm.org.

Mapbox tile: how?

0

Hi,

I created a tile map with mapbox.com, and I would like to use that as tile of a umap'map.

The your supported openlayers format for replace the tile, is:

http://{s}.domain.com/{z}/{x}/{y}.png

I talk with mapbox.com team. After 2 month of speaking, mapbox team suggest me this format url:

https://api.mapbox.com//styles/v1/papafrancesco/cj8w4kjz08l3x2slhj8c9zmvp/tiles/512/{z}/{x}/{y}{@2x}?access_token=pk.eyJ1IjoicGFwYWZyYW5jZXNjbyIsImEiOiJjaXFmZDRubzkwMDduaHhuaHVxemk5amZ5In0.cpMeGC7s9Pw8KqKXalh0Wg

BUT IT DON'T WORK

Mapbox team says me that the openlayers format is correct, and if don't work, the problem is by umap, not mapbox team.

Can you help me?

Francesco

asked 14 Jul '18, 19:23

franccicccio's gravatar image

franccicccio
11112
accept rate: 0%


One Answer:

0

I'm not sure if umap supports the @2x in brackets.. Maybe try explicitly including or excluding it. Also try changing from 512 tiles to 256 tiles to see if that helps.

answered 14 Jul '18, 23:16

aharvey's gravatar image

aharvey
5232913
accept rate: 21%

Source code available on GitHub .