Skip to main content
6 events
when toggle format what by license comment
Apr 13, 2020 at 12:28 comment added Muneeb Mirza There are many layers which provide both english and native names. Try here leaflet-extras.github.io/leaflet-providers/preview
Jan 21, 2020 at 8:45 comment added AndrewHarvey If you're not using Mapbox GL JS you can't dynamically set the language on the client, so you'll need to create a new style in Mapbox Studio with your text field using the field for your language
Jan 21, 2020 at 3:32 comment added Seth Lutske I know its almost 3 years later but I'm having this same problem, and I don't understand this answer. The link says to use map.setLayoutProperty('country-label', 'text-field', [ 'get', 'name_' + language ]);, but this is within the mapbox API, not the leaflet API. The leaflet API doesn't have a setLayoutProperty method. How can we get the desired language using an L.tilelayer('mapboxURL') layer in leaflet?
Mar 21, 2017 at 11:16 vote accept CommunityBot
Mar 21, 2017 at 11:15 comment added user93757 I'm using classic option and mapbox.run-bike-hike is exactly what I was looking for. Thanks!
Mar 21, 2017 at 5:40 history answered AndrewHarvey CC BY-SA 3.0