Skip to content

Latest commit

 

History

History
43 lines (27 loc) · 1.77 KB

README.md

File metadata and controls

43 lines (27 loc) · 1.77 KB

MapLibre Canvas Labels

Proof-of-concept to render Hindi text labels in a canvas with TinySDF and copying the resulting image to a MapLibre map.

Quite slow to load, a bit an ugly solution, text not totally crisp, but the result still looks OK I find...

Demo

Offscreen Canvas

https://wipfli.github.io/maplibre-canvas-labels/offscreen

Languages

If you don't specify a language in the URL, the map shows the OpenStreetMap name tag value. This looks especially beautiful in South-East Asia.

Try out locally

Map tiles from swiss-map.cc have cors for localhost:3000, so if you want to try this out locally, serve index.html at port 3000 for example with:

npx serve .

Base Map Style

https://github.com/wipfli/swiss-map