How to style self-hosted tilemap using deck.gl #8069
-
Hello there! I have .mbtiles map file from here - bbbike. Then i serve it using tileserver-gl. In application i'm use MVTLayer to display it into DeckGL component(react). Map is displayed but without any styles(obviously). The question is how to apply styles? Prop "mapStyle", in wich i placed json object with styles, doesn't change anything. A'm sure that styles are correct, because in tileserver interface all they works fine. Next thing i'm sure, that current style import isn't right. I just copied style.json from directory with files(maps/styles/fonts/etc) for Tileserver. So, probably, i should get my styles different way, but how? And how to switch between them after? It should be easy, but i cant find solution. Hope, someone help me)
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
MVTLayer is not a replacement of Mapbox. If you want to use Mapbox JSON styles, see using with base map. Props supported by MVTLayer can be found on its documentation page. |
Beta Was this translation helpful? Give feedback.
MVTLayer is not a replacement of Mapbox. If you want to use Mapbox JSON styles, see using with base map.
Props supported by MVTLayer can be found on its documentation page.