Bumps [maplibre-gl](https://github.com/maplibre/maplibre-gl-js) from 6.8.0 to 6.9.0. <details> <summary>Release notes</summary> <p><em>Sourced from <a href="https://github.com/maplibre/maplibre-gl-js/releases">maplibre-gl's releases</a>.</em></p> <blockquote> <h2>v6.9.0</h2> <h3>✨ Features and improvements</h3> <ul> <li>Improved support for drawing the letters of Devanagari, Khmer, Burmese and the other complex scripts and also draws Arabic and Hebrew labels correctly without loading a right-to-left text plugin, which deprecates <code>setRTLTextPlugin</code> and <code>getRTLTextPluginStatus</code> (<a href="https://redirect.github.com/maplibre/maplibre-gl-js/pull/8343">#8343</a>) (by <a href="https://github.com/HarelM"><code>@HarelM</code></a>)</li> <li>Read sprite and image pixels back through an <code>OffscreenCanvas</code> where available, removing a main-thread stall of tens of milliseconds on GPU-accelerated browsers when a sprite loads (<a href="https://redirect.github.com/maplibre/maplibre-gl-js/pull/8339">#8339</a>) (by <a href="https://github.com/cherenkov"><code>@cherenkov</code></a>)</li> <li>Skip clipping masks for layers hidden at the current zoom and stop re-binding dynamic buffers on cached vertex array binds, removing redundant WebGL calls every frame (<a href="https://redirect.github.com/maplibre/maplibre-gl-js/pull/8369">#8369</a>) (by <a href="https://github.com/johncarmack1984"><code>@johncarmack1984</code></a>)</li> <li>Re-render at most one stale terrain drape per frame and keep drapes that differ only by zoom while the map moves, so a finger lift over terrain no longer re-renders every tile at once (<a href="https://redirect.github.com/maplibre/maplibre-gl-js/pull/8368">#8368</a>) (by <a href="https://github.com/johncarmack1984"><code>@johncarmack1984</code></a>)</li> </ul> <h3>🐞 Bug fixes</h3> <ul> <li>Fix <code>setStyle()</code> throwing while terrain is still loading because an intermediate render tried to compile a terrain shader before the replacement style initialized its projection (<a href="https://redirect.github.com/maplibre/maplibre-gl-js/issues/6824">#6824</a>) (by <a href="https://github.com/miakh"><code>@miakh</code></a>)</li> <li>Fix queued GeoJSON <code>updateData</code> property removals throwing after geometry-only updates or retaining previously updated values (<a href="https://redirect.github.com/maplibre/maplibre-gl-js/pull/8372">#8372</a>) (by <a href="https://github.com/jokrasno"><code>@jokrasno</code></a>)</li> <li>Treat camera options passed as <code>undefined</code> as not given in <code>jumpTo</code>, <code>easeTo</code> and <code>flyTo</code>; they were coerced to NaN (<a href="https://redirect.github.com/maplibre/maplibre-gl-js/pull/8373">#8373</a>) (by <a href="https://github.com/vlumi"><code>@vlumi</code></a>)</li> <li>Fix a <code>Not implemented.</code> error that broke panning and zooming when the projection was changed while the camera was moving, on maps with terrain enabled or a <code>transformCameraUpdate</code> callback (<a href="https://redirect.github.com/maplibre/maplibre-gl-js/issues/8351">#8351</a>) (by <a href="https://github.com/lazerg"><code>@lazerg</code></a>)</li> <li>Fix a map created inside a hidden container staying at the <code>400x300</code> fallback size when the container is shown before the resize observer's first notification is delivered (<a href="https://redirect.github.com/maplibre/maplibre-gl-js/issues/8277">#8277</a>) (by <a href="https://github.com/spliffone"><code>@spliffone</code></a>)</li> <li>Fix <code>MercatorTransform</code> throwing when it is resized to a zero width, and skip the matrix calculation of every projection while the transform has a zero width or height (<a href="https://redirect.github.com/maplibre/maplibre-gl-js/pull/8374">#8374</a>) (by <a href="https://github.com/avosa"><code>@avosa</code></a>)</li> <li>Fix every style update opening a redundant sky and light transition, which kept <code>idle</code> from firing for the transition duration after the map was otherwise done, and could ease the sky and the light on a different curve from the layers (<a href="https://redirect.github.com/maplibre/maplibre-gl-js/issues/8348">#8348</a>) (by <a href="https://github.com/cherenkov"><code>@cherenkov</code></a>)</li> <li>Fix DOM sanitization for iframe and srcdoc (<a href="https://redirect.github.com/maplibre/maplibre-gl-js/pull/8396">#8396</a>) (by <a href="https://github.com/HarelM"><code>@HarelM</code></a>)</li> </ul> </blockquote> </details> <details> <summary>Changelog</summary> <p><em>Sourced from <a href="https://github.com/maplibre/maplibre-gl-js/blob/main/CHANGELOG.md">maplibre-gl's changelog</a>.</em></p> <blockquote> <h2>6.9.0</h2> <h3>✨ Features and improvements</h3> <ul> <li>Improved support for drawing the letters of Devanagari, Khmer, Burmese and the other complex scripts and also draws Arabic and Hebrew labels correctly without loading a right-to-left text plugin, which deprecates <code>setRTLTextPlugin</code> and <code>getRTLTextPluginStatus</code> (<a href="https://redirect.github.com/maplibre/maplibre-gl-js/pull/8343">#8343</a>) (by <a href="https://github.com/HarelM"><code>@HarelM</code></a>)</li> <li>Read sprite and image pixels back through an <code>OffscreenCanvas</code> where available, removing a main-thread stall of tens of milliseconds on GPU-accelerated browsers when a sprite loads (<a href="https://redirect.github.com/maplibre/maplibre-gl-js/pull/8339">#8339</a>) (by <a href="https://github.com/cherenkov"><code>@cherenkov</code></a>)</li> <li>Skip clipping masks for layers hidden at the current zoom and stop re-binding dynamic buffers on cached vertex array binds, removing redundant WebGL calls every frame (<a href="https://redirect.github.com/maplibre/maplibre-gl-js/pull/8369">#8369</a>) (by <a href="https://github.com/johncarmack1984"><code>@johncarmack1984</code></a>)</li> <li>Re-render at most one stale terrain drape per frame and keep drapes that differ only by zoom while the map moves, so a finger lift over terrain no longer re-renders every tile at once (<a href="https://redirect.github.com/maplibre/maplibre-gl-js/pull/8368">#8368</a>) (by <a href="https://github.com/johncarmack1984"><code>@johncarmack1984</code></a>)</li> </ul> <h3>🐞 Bug fixes</h3> <ul> <li>Fix <code>setStyle()</code> throwing while terrain is still loading because an intermediate render tried to compile a terrain shader before the replacement style initialized its projection (<a href="https://redirect.github.com/maplibre/maplibre-gl-js/issues/6824">#6824</a>) (by <a href="https://github.com/miakh"><code>@miakh</code></a>)</li> <li>Fix queued GeoJSON <code>updateData</code> property removals throwing after geometry-only updates or retaining previously updated values (<a href="https://redirect.github.com/maplibre/maplibre-gl-js/pull/8372">#8372</a>) (by <a href="https://github.com/jokrasno"><code>@jokrasno</code></a>)</li> <li>Treat camera options passed as <code>undefined</code> as not given in <code>jumpTo</code>, <code>easeTo</code> and <code>flyTo</code>; they were coerced to NaN (<a href="https://redirect.github.com/maplibre/maplibre-gl-js/pull/8373">#8373</a>) (by <a href="https://github.com/vlumi"><code>@vlumi</code></a>)</li> <li>Fix a <code>Not implemented.</code> error that broke panning and zooming when the projection was changed while the camera was moving, on maps with terrain enabled or a <code>transformCameraUpdate</code> callback (<a href="https://redirect.github.com/maplibre/maplibre-gl-js/issues/8351">#8351</a>) (by <a href="https://github.com/lazerg"><code>@lazerg</code></a>)</li> <li>Fix a map created inside a hidden container staying at the <code>400x300</code> fallback size when the container is shown before the resize observer's first notification is delivered (<a href="https://redirect.github.com/maplibre/maplibre-gl-js/issues/8277">#8277</a>) (by <a href="https://github.com/spliffone"><code>@spliffone</code></a>)</li> <li>Fix <code>Map#project</code> returning an incorrect on-screen point for a location behind the camera. It now returns a point outside the viewport, on the side through which the location left the screen, so DOM markers and popups are moved off-screen as expected. (<a href="https://redirect.github.com/maplibre/maplibre-gl-js/issues/8292">#8292</a>) (by <a href="https://github.com/schickm"><code>@schickm</code></a>)</li> <li>Fix <code>MercatorTransform</code> throwing when it is resized to a zero width, and skip the matrix calculation of every projection while the transform has a zero width or height (<a href="https://redirect.github.com/maplibre/maplibre-gl-js/pull/8374">#8374</a>) (by <a href="https://github.com/avosa"><code>@avosa</code></a>)</li> <li>Fix every style update opening a redundant sky and light transition, which kept <code>idle</code> from firing for the transition duration after the map was otherwise done, and could ease the sky and the light on a different curve from the layers (<a href="https://redirect.github.com/maplibre/maplibre-gl-js/issues/8348">#8348</a>) (by <a href="https://github.com/cherenkov"><code>@cherenkov</code></a>)</li> <li>Fix DOM sanitization for iframe and srcdoc (<a href="https://redirect.github.com/maplibre/maplibre-gl-js/pull/8396">#8396</a>) (by <a href="https://github.com/HarelM"><code>@HarelM</code></a>)</li> </ul> </blockquote> </details> <details> <summary>Commits</summary> <ul> <li><a href="https://github.com/maplibre/maplibre-gl-js/commit/f985318d1fa7e01d8b7e32a719aaf91efcb348d4"><code>f985318</code></a> Bump js version to 6.9.0 (<a href="https://redirect.github.com/maplibre/maplibre-gl-js/issues/8398">#8398</a>)</li> <li><a href="https://github.com/maplibre/maplibre-gl-js/commit/b51d10a7b0bff4ffe4480b9e26b4ebe57461b928"><code>b51d10a</code></a> improve sanitization (<a href="https://redirect.github.com/maplibre/maplibre-gl-js/issues/8396">#8396</a>)</li> <li><a href="https://github.com/maplibre/maplibre-gl-js/commit/36034010e11c5cf9a9d1f10bcb4b5306dab14ba1"><code>3603401</code></a> chore(deps-dev): bump cssnano from 9.0.2 to 9.0.3 (<a href="https://redirect.github.com/maplibre/maplibre-gl-js/issues/8390">#8390</a>)</li> <li><a href="https://github.com/maplibre/maplibre-gl-js/commit/3e3c447168f00dd82485fa5b27b6e7d90d6f705e"><code>3e3c447</code></a> chore(deps): bump <code>@maplibre/maplibre-gl-style-spec</code> from 26.4.1 to 26.4.2 (<a href="https://redirect.github.com/maplibre/maplibre-gl-js/issues/8391">#8391</a>)</li> <li><a href="https://github.com/maplibre/maplibre-gl-js/commit/ea9f7df5e374a65401ddf388a54158d0b59b2e97"><code>ea9f7df</code></a> chore(deps): bump zensical/zensical from 0.0.59 to 0.0.60 (<a href="https://redirect.github.com/maplibre/maplibre-gl-js/issues/8392">#8392</a>)</li> <li><a href="https://github.com/maplibre/maplibre-gl-js/commit/ce10d220875eac604ee5c646e9b17680d7e182ed"><code>ce10d22</code></a> feat: add bidi support and deprecate RTL plugin (<a href="https://redirect.github.com/maplibre/maplibre-gl-js/issues/8343">#8343</a>)</li> <li><a href="https://github.com/maplibre/maplibre-gl-js/commit/86901c5b7f638c201928e3e7ccea08200718ff3e"><code>86901c5</code></a> fix: stop re-opening sky and light transitions on every style update (<a href="https://redirect.github.com/maplibre/maplibre-gl-js/issues/8350">#8350</a>)</li> <li><a href="https://github.com/maplibre/maplibre-gl-js/commit/54dfab1e186e72fc43bc319cab97c5427f80a0f3"><code>54dfab1</code></a> chore(deps-dev): bump <code>@types/node</code> from 26.4.0 to 26.4.1 (<a href="https://redirect.github.com/maplibre/maplibre-gl-js/issues/8352">#8352</a>)</li> <li><a href="https://github.com/maplibre/maplibre-gl-js/commit/209e34203b2ac001d022334471182a1d06c5b2b0"><code>209e342</code></a> perf: skip hidden layers before their clipping masks and drop the dynamic buf...</li> <li><a href="https://github.com/maplibre/maplibre-gl-js/commit/71a12d8c37a052eec276f3ad93ae8cc5b8a92f15"><code>71a12d8</code></a> fix: skip terrain drawing until replacement projection is ready (<a href="https://redirect.github.com/maplibre/maplibre-gl-js/issues/8258">#8258</a>)</li> <li>Additional commits viewable in <a href="https://github.com/maplibre/maplibre-gl-js/compare/v6.8.0...v6.9.0">compare view</a></li> </ul> </details> <br /> [](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores) Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting `@dependabot rebase`. [//]: # (dependabot-automerge-start) [//]: # (dependabot-automerge-end) --- <details> <summary>Dependabot commands and options</summary> <br /> You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot show <dependency name> ignore conditions` will show all of the ignore conditions of the specified dependency - `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself) </details> Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Maputnik
A free and open visual editor for the MapLibre GL styles targeted at developers and map designers.
Usage
- 🔗 Design your maps online at https://www.maplibre.org/maputnik/ (all in local storage)
- 🔗 Use the Maputnik CLI for local style development
- In a Docker, run this command and browse to http://localhost:8888, Ctrl+C to stop the server.
docker run -it --rm -p 8888:8000 ghcr.io/maplibre/maputnik:main
To see the CLI options (for example file watching or style serving) run:
docker run -it --rm -p 8888:8000 ghcr.io/maplibre/maputnik:main --help
You might need to mount a volume (-v) to be able to use these options.
Documentation
The documentation can be found in the Wiki. You are welcome to collaborate!
- 🔗 Study the Maputnik Wiki
- 📹 Design a map from Scratch https://youtu.be/XoDh0gEnBQo
Develop
Maputnik is written in typescript and is using React and MapLibre GL JS.
We ensure building and developing Maputnik works with the current active LTS Node.js version and above.
Check out our Internationalization guide for UI text related changes.
Getting Involved
Join the #maplibre or #maputnik slack channel at OSMUS: get an invite at https://slack.openstreetmap.us/ Read the the below guide in order to get familiar with how we do things around here.
Install the deps, start the dev server and open the web browser on http://localhost:8888/.
# install dependencies
npm install
# start dev server
npm run start
If you want Maputnik to be accessible externally use the --host option:
# start externally accessible dev server
npm run start -- --host 0.0.0.0
The build process will watch for changes to the filesystem, rebuild and autoreload the editor.
npm run build
Lint the JavaScript code.
# run linter
npm run lint
npm run lint-css
npm run sort-styles
Tests
End-to-end tests
For E2E testing we use Playwright. The tests live in the e2e directory and drive the app through the MaputnikDriver page object.
The first time you run the tests, install the browser:
npx playwright install chromium
Playwright automatically starts the dev server (npm run start) for you, so you can just run:
npm run test
Some useful options:
# see the tests run in a headed browser
npm run test -- --headed
# run a single spec / filter by title
npm run test -- e2e/map.spec.ts
npm run test -- -g "zoom level"
# open the interactive UI mode
npx playwright test --ui
Running the E2E tests also produces a code-coverage report in coverage/ (collected via istanbul instrumentation of the dev server).
Unit & component tests
Unit tests and component tests run with Vitest; component tests (*.browser.test.tsx) use Vitest's browser mode with the Playwright provider.
npm run test-unit
Release process
- Review
CHANGELOG.md- Double-check that all changes included in the release are appropriately documented.
- To-be-released changes should be under the "main" header.
- Commit any final changes to the changelog.
- Run Create bump version PR by manual workflow dispatch and set the version number in the input. This will create a PR that changes the changelog and
package.jsonfile to review and merge. - Once merged, an automatic process will kick in and creates a GitHub release and uploads release assets.
Sponsors
Thanks to the supporters of the Kickstarter campaign. This project would not be possible without these commercial and individual sponsors. You can see this file's history for previous sponsors of the original Maputnik repo. Read more about the MapLibre Sponsorship Program at https://maplibre.org/sponsors/.
License
Maputnik is licensed under MIT and is Copyright (c) Lukas Martinelli and Maplibre contributors. As contributor please take extra care of not violating any Mapbox trademarks. Do not get inspired by other map studios and make your own decisions for a good style editor.
