Bumps [maplibre-gl](https://github.com/maplibre/maplibre-gl-js) from 6.9.0 to 6.9.1. <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.1</h2> <h3>✨ Features and improvements</h3> <ul> <li>Stop the scale control forcing a synchronous layout and rewriting its DOM on every frame of a pan or zoom (<a href="https://redirect.github.com/maplibre/maplibre-gl-js/pull/8403">#8403</a>) (by <a href="https://github.com/cherenkov"><code>@cherenkov</code></a>)</li> <li>Speed up merging adjacent <code>symbol-placement: line</code> features that share a label, which took time quadratic in the number of features that chain together (<a href="https://redirect.github.com/maplibre/maplibre-gl-js/pull/8436">#8436</a>) (by <a href="https://github.com/cherenkov"><code>@cherenkov</code></a>)</li> <li>Convert the <code>fill-extrusion-rounded-corner-distance</code> rounding distance to tile units once per tile instead of once per feature (<a href="https://redirect.github.com/maplibre/maplibre-gl-js/pull/8435">#8435</a>) (by <a href="https://github.com/cherenkov"><code>@cherenkov</code></a>)</li> </ul> <h3>🐞 Bug fixes</h3> <ul> <li>Redraw terrain depth when DEM tiles arrive so occluded symbols and markers stay hidden (<a href="https://redirect.github.com/maplibre/maplibre-gl-js/pull/8447">#8447</a>) (by <a href="https://github.com/ArcSolver"><code>@ArcSolver</code></a>)</li> <li>Fix raster tiles getting stuck at the start of a fade-in until the map moves. (<a href="https://redirect.github.com/maplibre/maplibre-gl-js/pull/8430">#8430</a>) (by <a href="https://github.com/Kanahiro"><code>@Kanahiro</code></a>)</li> <li>Fix <code>fill-extrusion-vertical-gradient</code> disappearing over 3D terrain, where the gradient was computed from the extrusion's height above sea level instead of its own height (<a href="https://redirect.github.com/maplibre/maplibre-gl-js/pull/8410">#8410</a>) (by <a href="https://github.com/ArcSolver"><code>@ArcSolver</code></a>)</li> <li>Fix missing map layers after custom layer rendering (<a href="https://redirect.github.com/maplibre/maplibre-gl-js/pull/8406">#8406</a>) (by <a href="https://github.com/birkskyum"><code>@birkskyum</code></a>)</li> <li>Fix 3D terrain reading elevation from the wrong part of a parent DEM tile while the deepest DEM tile is still loading (<a href="https://redirect.github.com/maplibre/maplibre-gl-js/pull/8407">#8407</a>) (by <a href="https://github.com/ArcSolver"><code>@ArcSolver</code></a>)</li> <li>Align 3D terrain DEM sampling with hillshade and color-relief at cell centres (<a href="https://redirect.github.com/maplibre/maplibre-gl-js/pull/8420">#8420</a>) (by <a href="https://github.com/ArcSolver"><code>@ArcSolver</code></a>)</li> <li>Fix setting one paint, light or sky property transitioning every property alongside it, which delayed <code>idle</code> even when nothing could animate and restarted transitions that were still running (<a href="https://redirect.github.com/maplibre/maplibre-gl-js/issues/8376">#8376</a>) (by <a href="https://github.com/cherenkov"><code>@cherenkov</code></a>)</li> <li>Fix <code>fill-extrusion-rounded-corner-distance</code> rounding every feature twice, which over-rounded the corners and inflated the vertex count (<a href="https://redirect.github.com/maplibre/maplibre-gl-js/pull/8429">#8429</a>) (by <a href="https://github.com/cherenkov"><code>@cherenkov</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> </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.1</h2> <h3>✨ Features and improvements</h3> <ul> <li>Stop the scale control forcing a synchronous layout and rewriting its DOM on every frame of a pan or zoom (<a href="https://redirect.github.com/maplibre/maplibre-gl-js/pull/8403">#8403</a>) (by <a href="https://github.com/cherenkov"><code>@cherenkov</code></a>)</li> <li>Speed up merging adjacent <code>symbol-placement: line</code> features that share a label, which took time quadratic in the number of features that chain together (<a href="https://redirect.github.com/maplibre/maplibre-gl-js/pull/8436">#8436</a>) (by <a href="https://github.com/cherenkov"><code>@cherenkov</code></a>)</li> <li>Convert the <code>fill-extrusion-rounded-corner-distance</code> rounding distance to tile units once per tile instead of once per feature (<a href="https://redirect.github.com/maplibre/maplibre-gl-js/pull/8435">#8435</a>) (by <a href="https://github.com/cherenkov"><code>@cherenkov</code></a>)</li> </ul> <h3>🐞 Bug fixes</h3> <ul> <li>Redraw terrain depth when DEM tiles arrive so occluded symbols and markers stay hidden (<a href="https://redirect.github.com/maplibre/maplibre-gl-js/pull/8447">#8447</a>) (by <a href="https://github.com/ArcSolver"><code>@ArcSolver</code></a>)</li> <li>Fix raster tiles getting stuck at the start of a fade-in until the map moves. (<a href="https://redirect.github.com/maplibre/maplibre-gl-js/pull/8430">#8430</a>) (by <a href="https://github.com/Kanahiro"><code>@Kanahiro</code></a>)</li> <li>Fix <code>fill-extrusion-vertical-gradient</code> disappearing over 3D terrain, where the gradient was computed from the extrusion's height above sea level instead of its own height (<a href="https://redirect.github.com/maplibre/maplibre-gl-js/pull/8410">#8410</a>) (by <a href="https://github.com/ArcSolver"><code>@ArcSolver</code></a>)</li> <li>Fix missing map layers after custom layer rendering (<a href="https://redirect.github.com/maplibre/maplibre-gl-js/pull/8406">#8406</a>) (by <a href="https://github.com/birkskyum"><code>@birkskyum</code></a>)</li> <li>Fix 3D terrain reading elevation from the wrong part of a parent DEM tile while the deepest DEM tile is still loading (<a href="https://redirect.github.com/maplibre/maplibre-gl-js/pull/8407">#8407</a>) (by <a href="https://github.com/ArcSolver"><code>@ArcSolver</code></a>)</li> <li>Align 3D terrain DEM sampling with hillshade and color-relief at cell centres (<a href="https://redirect.github.com/maplibre/maplibre-gl-js/pull/8420">#8420</a>) (by <a href="https://github.com/ArcSolver"><code>@ArcSolver</code></a>)</li> <li>Fix setting one paint, light or sky property transitioning every property alongside it, which delayed <code>idle</code> even when nothing could animate and restarted transitions that were still running (<a href="https://redirect.github.com/maplibre/maplibre-gl-js/issues/8376">#8376</a>) (by <a href="https://github.com/cherenkov"><code>@cherenkov</code></a>)</li> <li>Fix <code>fill-extrusion-rounded-corner-distance</code> rounding every feature twice, which over-rounded the corners and inflated the vertex count (<a href="https://redirect.github.com/maplibre/maplibre-gl-js/pull/8429">#8429</a>) (by <a href="https://github.com/cherenkov"><code>@cherenkov</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> </ul> </blockquote> </details> <details> <summary>Commits</summary> <ul> <li><a href="https://github.com/maplibre/maplibre-gl-js/commit/b044d9f8de4ee1c22430c1b79d10e004e5e86994"><code>b044d9f</code></a> Bump js version to 6.9.1 (<a href="https://redirect.github.com/maplibre/maplibre-gl-js/issues/8449">#8449</a>)</li> <li><a href="https://github.com/maplibre/maplibre-gl-js/commit/ae328866133a3188814b2a7b46b640b264d00ee9"><code>ae32886</code></a> fix: redraw terrain depth when DEM tiles arrive (<a href="https://redirect.github.com/maplibre/maplibre-gl-js/issues/8447">#8447</a>)</li> <li><a href="https://github.com/maplibre/maplibre-gl-js/commit/79172999a0f13171e1c040abf5e036d6af1ea813"><code>7917299</code></a> Fix raster tiles getting stuck during fade-in when zooming in (<a href="https://redirect.github.com/maplibre/maplibre-gl-js/issues/8430">#8430</a>)</li> <li><a href="https://github.com/maplibre/maplibre-gl-js/commit/78128493147cc1ae4c03c0710a1947ae64bb6f7d"><code>7812849</code></a> fix: Stop Markers and Popups from rendering on-screen when behind the camera ...</li> <li><a href="https://github.com/maplibre/maplibre-gl-js/commit/216567dabf37d0c97e5c28d10fb10b995cd54677"><code>216567d</code></a> perf: create the fill-extrusion corner rounder once per tile (<a href="https://redirect.github.com/maplibre/maplibre-gl-js/issues/8435">#8435</a>)</li> <li><a href="https://github.com/maplibre/maplibre-gl-js/commit/dc767a3624b7400c4428827be49e8bbea94279bb"><code>dc767a3</code></a> fix: align terrain DEM cell centres with hillshade (<a href="https://redirect.github.com/maplibre/maplibre-gl-js/issues/8420">#8420</a>)</li> <li><a href="https://github.com/maplibre/maplibre-gl-js/commit/73845bd10ce831e79d1b2d918660c54aac636609"><code>73845bd</code></a> chore(deps-dev): bump cspell from 10.2.2 to 10.3.0 (<a href="https://redirect.github.com/maplibre/maplibre-gl-js/issues/8417">#8417</a>)</li> <li><a href="https://github.com/maplibre/maplibre-gl-js/commit/04bbb358715743ff1a7afd1cd36022ebe3cbdbae"><code>04bbb35</code></a> chore(deps-dev): bump vite from 8.2.2 to 8.3.0 (<a href="https://redirect.github.com/maplibre/maplibre-gl-js/issues/8443">#8443</a>)</li> <li><a href="https://github.com/maplibre/maplibre-gl-js/commit/8ef49e60074a031f33ac431aca320c4167cd778f"><code>8ef49e6</code></a> chore(deps-dev): bump cssnano from 9.0.3 to 9.0.4 (<a href="https://redirect.github.com/maplibre/maplibre-gl-js/issues/8416">#8416</a>)</li> <li><a href="https://github.com/maplibre/maplibre-gl-js/commit/de2a925b34866691cd98815c8ecb823aaf1e89f2"><code>de2a925</code></a> chore(deps-dev): bump autoprefixer from 10.5.5 to 10.5.6 (<a href="https://redirect.github.com/maplibre/maplibre-gl-js/issues/8444">#8444</a>)</li> <li>Additional commits viewable in <a href="https://github.com/maplibre/maplibre-gl-js/compare/v6.9.0...v6.9.1">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.
