Skip to content

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

License

Notifications You must be signed in to change notification settings

wipfli/maplibre-canvas-labels

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

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

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published