protomaps-leaflet icon indicating copy to clipboard operation
protomaps-leaflet copied to clipboard

Always display English?

Open btkfrank opened this issue 1 year ago • 4 comments

I see provinces in China displayed as Chinese, although major cities are still displayed in English. After zooming in on details, no English is shown. Can this behaviour be controlled? Ideally, English can be displayed throughout all the zoom levels.

image image

btkfrank avatar Jun 20 '24 19:06 btkfrank

This needs to be resolved in https://github.com/protomaps/basemaps/issues/270 first

bdon avatar Jul 10 '24 16:07 bdon

This needs to be resolved in protomaps/basemaps#270 first

Sorry I am new to OSM. If I use planettiler directly to generate my pmtiles file, will that work? I found one resource here. This looks like is generated by planettiler directly. And when I use the pmtiles provided by this resource, load it by using protomaps-leaflet plugin, I am only able to see some basic shapes such as continent borders and oceans, nothing else. But if I am using the build provided by protomaps, it works seamlessly.

btkfrank avatar Jul 12 '24 21:07 btkfrank

Hi,

The resource you linked contains OpenMapTiles data which is different from the protomaps layers described here: https://docs.protomaps.com/basemaps/layers

So the protomaps style will not work with that, and is not practical to make compatible. You can find an OMT-based style to use with that tileset.

bdon avatar Jul 16 '24 10:07 bdon

Still a work in progress but this might help: https://github.com/kalisio/leaflet-pmtiles.

claustres avatar Jul 18 '24 16:07 claustres

This needs to be resolved in protomaps/basemaps#270 first

It seems that issue is now closed. Any plans to catch up on that?

nachobibian avatar Feb 26 '25 16:02 nachobibian

No progress on implementing this right now, if you need the multilingual feature I'd recommend using MapLibre.

bdon avatar Feb 27 '25 05:02 bdon

No progress on implementing this right now, if you need the multilingual feature I'd recommend using MapLibre.

Thank you for your prompt response. I don't really need multilanguage, just English when zoomed in over 7. I understand that's related?

nachobibian avatar Feb 27 '25 08:02 nachobibian

If you want to display English text in non-Latin areas such as China in the example above you need the multilingual / language switcher as documented here for MapLibre: https://docs.protomaps.com/basemaps/maplibre#using-the-npm-package

bdon avatar Feb 28 '25 04:02 bdon

The lang option to leaflet layer now controls the label language in v5.0.0.

bdon avatar Apr 04 '25 09:04 bdon