protomaps / basemaps

Basemap PMTiles generation and cartographic styles for OpenStreetMap data and more
https://maps.protomaps.com/
Other
347 stars 44 forks source link

Add lang and script parameters to TypeScript style generation #275

Closed wipfli closed 1 month ago

wipfli commented 2 months ago

This is an example how the segmented name tag values from #273 can be used to create language-localized maps.

To run a demo locally, follow these steps:

cd app
nvm use
npm ci
npm run dev

Open web browser at

http://localhost:5173/#map=4.62/44.42/5.72&theme=dark&lang=hi&tiles=https://build.protomaps.com/20240823.pmtiles

image

wipfli commented 1 month ago

The demo at https://pub-cf7f11e26ace447db8f7215b61ac0eae.r2.dev/lang-style/index.html?script=Latin&language=en#map=8/38/24 has been updated to the latest commit of this pull request

Edit: Removed the demo in favor of the built-in app.

sonarcloud[bot] commented 1 month ago

Quality Gate Passed Quality Gate passed

Issues
0 New issues
0 Accepted issues

Measures
0 Security Hotspots
0.0% Coverage on New Code
0.0% Duplication on New Code

See analysis details on SonarCloud