I want to show the map in my app in English (no localized names in the language most people can't read)
L.tileLayer('https://api.tiles.mapbox.com/v4/{id}/{z}/{x}/{y}.png?access_token={accessToken}',
I'm using mapbox tiles and it's working for me, but all the signs are shown in local languages. Since my app is in English, I don't want to show Chinese signs to my visitors.
I found the docs about how to change the language in mapbox.js, but I don't want to use their library. Is there a way to build tiles url so it would've been aware about the language preferences?
update: mapbox is not really an important requirement. I'm looking for the tile with labels in English. Can't find any
Best Answer
Step 1. sign up https://studio.mapbox.com/, then sign in.
Step 2. desgin your own map style, change the Places componets language.
Step 3. save the style, and get the style URL
mapbox://styles/yourusername/randomstring
, in fact, yourusername/randomstring is the ID(id).Step 4. use the id \ accessToken in
https://api.mapbox.com/styles/v1/{id}/{z}/{x}/{y}@2x?access_token={accessToken}
refer to: https://docs.mapbox.com/api/maps/#vector-tiles