Deck.gl: pydeck: Setting the label language on Mapbox map tiles

Created on 12 Feb 2020  路  5Comments  路  Source: visgl/deck.gl

I want to change the language of mapbox in Pydeck.
Can I change it using setLayoutProperty on deck.gl, but can it be done with Pydeck?

question

Most helpful comment

@swha03 you can set the language on a tile set in Mapbox Studio:

image

You can then use the style URL published from Mapbox Studio in pydeck.

All 5 comments

Hi @swha03 can you provide some example code of what you're trying to do?

You mean deck.gl example code?
map.setLayoutProperty('country-label-lg', 'text-field', '{name_fr}')

@swha03 you can create a map style with the desired labels and pass it鈥檚 url to pydeck.

@swha03 you can set the language on a tile set in Mapbox Studio:

image

You can then use the style URL published from Mapbox Studio in pydeck.

Thank you very much for your kind reply every time I ask!

Was this page helpful?
0 / 5 - 0 ratings