Bumps [maplibre-gl](https://github.com/maplibre/maplibre-gl-js) from 6.7.0 to 6.8.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.8.0</h2> <h3>✨ Features and improvements</h3> <ul> <li>Add <code>map.getStyleUrl()</code>, which returns the URL the style was loaded from, or <code>null</code> when the style was given as an object (<a href="https://redirect.github.com/maplibre/maplibre-gl-js/issues/7109">#7109</a>) (by <a href="https://github.com/bradymadden97"><code>@bradymadden97</code></a> and <a href="https://github.com/giswqs"><code>@giswqs</code></a>)</li> <li>Sample terrain render-to-texture output through mipmaps with trilinear filtering, so draped layers stop shimmering and aliasing at high pitch (<a href="https://redirect.github.com/maplibre/maplibre-gl-js/pull/8328">#8328</a>, continues <a href="https://redirect.github.com/maplibre/maplibre-gl-js/pull/7673">#7673</a>) (by <a href="https://github.com/AveryanAlex"><code>@AveryanAlex</code></a>)</li> <li>Build the <code>Intl.Segmenter</code> instances used for text shaping on first use instead of at import, shaving several milliseconds off loading MapLibre on the main thread (<a href="https://redirect.github.com/maplibre/maplibre-gl-js/pull/8337">#8337</a>) (by <a href="https://github.com/cherenkov"><code>@cherenkov</code></a>)</li> <li>Link shader programs before reading their compile status, so the driver can overlap the compiles and the main thread waits less on shader compilation (<a href="https://redirect.github.com/maplibre/maplibre-gl-js/pull/8338">#8338</a>) (by <a href="https://github.com/cherenkov"><code>@cherenkov</code></a>)</li> <li>Build the default <code>Marker</code> pin once and clone it per marker, so creating many default markers takes roughly half the constructor time (<a href="https://redirect.github.com/maplibre/maplibre-gl-js/pull/8340">#8340</a>) (by <a href="https://github.com/cherenkov"><code>@cherenkov</code></a>)</li> <li>Add SDF rendering support for fill patterns, using <code>fill-color</code> as the foreground color (<a href="https://redirect.github.com/maplibre/maplibre-gl-js/pull/7747">#7747</a>) (by <a href="https://github.com/bradymadden97"><code>@bradymadden97</code></a> and <a href="https://github.com/deniial00"><code>@deniial00</code></a>)</li> <li>Warn once when the canvas is clamped to <code>maxCanvasSize</code>, which previously lowered the rendered resolution silently (<a href="https://redirect.github.com/maplibre/maplibre-gl-js/issues/8200">#8200</a>) (by <a href="https://github.com/str0kes"><code>@str0kes</code></a>)</li> </ul> <h3>🐞 Bug fixes</h3> <ul> <li>Fix a marker's popup jumping to another world copy when the marker is moved across the antimeridian on a zoomed-out map (<a href="https://redirect.github.com/maplibre/maplibre-gl-js/issues/5655">#5655</a>, <a href="https://redirect.github.com/maplibre/maplibre-gl-js/pull/8326">#8326</a>, continues <a href="https://redirect.github.com/maplibre/maplibre-gl-js/pull/5956">#5956</a>) (by <a href="https://github.com/yuiseki"><code>@yuiseki</code></a>)</li> <li>Fix terrain drape textures not being refreshed after zoom changes, causing stale rendering at the new zoom level (<a href="https://redirect.github.com/maplibre/maplibre-gl-js/issues/8251">#8251</a>) (by <a href="https://github.com/patte"><code>@patte</code></a>)</li> <li>Fix a gap between the sky and the ground at high pitch while globe transitions to mercator (<a href="https://redirect.github.com/maplibre/maplibre-gl-js/issues/7382">#7382</a>) (by <a href="https://github.com/birkskyum"><code>@birkskyum</code></a>)</li> <li>Treat an empty tile response (e.g. HTTP 204) as no data: raster-DEM tiles now load without elevation instead of failing with a <code>dem dimension mismatch</code> error, and empty raster tiles render as transparent (<a href="https://redirect.github.com/maplibre/maplibre-gl-js/issues/1551">#1551</a>) (by <a href="https://github.com/clement-igonet"><code>@clement-igonet</code></a>)</li> <li>Validate the <code>before</code> layer in <code>map.moveLayer</code> before reordering, so passing the id of a layer that does not exist leaves the layer order untouched instead of dropping the moved layer out of it (<a href="https://redirect.github.com/maplibre/maplibre-gl-js/issues/8301">#8301</a>) (by <a href="https://github.com/lazerg"><code>@lazerg</code></a>)</li> <li>Fix visible seams between hillshade tiles when using linear interpolation. (<a href="https://redirect.github.com/maplibre/maplibre-gl-js/pull/8302">#8302</a>) (by <a href="https://github.com/Turbo87"><code>@Turbo87</code></a>)</li> <li>Fix the map freezing when a render task throws an error (<a href="https://redirect.github.com/maplibre/maplibre-gl-js/issues/6093">#6093</a>) (by <a href="https://github.com/UberMouse"><code>@UberMouse</code></a>)</li> <li>Fix <code>getCameraAltitude()</code> returning <code>NaN</code> under <code>globe</code> and <code>vertical-perspective</code>, which disabled marker terrain occlusion and the camera terrain check; the altitude now follows the sphere (<a href="https://redirect.github.com/maplibre/maplibre-gl-js/issues/6584">#6584</a>) (by <a href="https://github.com/bigmistqke"><code>@bigmistqke</code></a> and <a href="https://github.com/patte"><code>@patte</code></a>)</li> <li>Draw an elevated symbol on globe when the symbol itself is in view but the ground under it is behind the horizon; occlusion now follows the line of sight to the elevated point (<a href="https://redirect.github.com/maplibre/maplibre-gl-js/issues/8253">#8253</a>) (by <a href="https://github.com/clement-igonet"><code>@clement-igonet</code></a>)</li> <li>Fix <code>setTiles</code> producing stale tile URLs when <code>loadTile</code> runs in the same frame (<a href="https://redirect.github.com/maplibre/maplibre-gl-js/pull/8323">#8323</a>) (by <a href="https://github.com/johncarmack1984"><code>@johncarmack1984</code></a> and <a href="https://github.com/nostrorom"><code>@nostrorom</code></a>)</li> <li>Keep the tile under an elevated symbol from being culled near the horizon, so a symbol with a large <code>symbol-height-offset</code> stays visible until it is behind the planet (<a href="https://redirect.github.com/maplibre/maplibre-gl-js/issues/8316">#8316</a>) (by <a href="https://github.com/clement-igonet"><code>@clement-igonet</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.8.0</h2> <h3>✨ Features and improvements</h3> <ul> <li>Add <code>map.getStyleUrl()</code>, which returns the URL the style was loaded from, or <code>null</code> when the style was given as an object (<a href="https://redirect.github.com/maplibre/maplibre-gl-js/issues/7109">#7109</a>) (by <a href="https://github.com/bradymadden97"><code>@bradymadden97</code></a> and <a href="https://github.com/giswqs"><code>@giswqs</code></a>)</li> <li>Sample terrain render-to-texture output through mipmaps with trilinear filtering, so draped layers stop shimmering and aliasing at high pitch (<a href="https://redirect.github.com/maplibre/maplibre-gl-js/pull/8328">#8328</a>, continues <a href="https://redirect.github.com/maplibre/maplibre-gl-js/pull/7673">#7673</a>) (by <a href="https://github.com/AveryanAlex"><code>@AveryanAlex</code></a>)</li> <li>Build the <code>Intl.Segmenter</code> instances used for text shaping on first use instead of at import, shaving several milliseconds off loading MapLibre on the main thread (<a href="https://redirect.github.com/maplibre/maplibre-gl-js/pull/8337">#8337</a>) (by <a href="https://github.com/cherenkov"><code>@cherenkov</code></a>)</li> <li>Link shader programs before reading their compile status, so the driver can overlap the compiles and the main thread waits less on shader compilation (<a href="https://redirect.github.com/maplibre/maplibre-gl-js/pull/8338">#8338</a>) (by <a href="https://github.com/cherenkov"><code>@cherenkov</code></a>)</li> <li>Build the default <code>Marker</code> pin once and clone it per marker, so creating many default markers takes roughly half the constructor time (<a href="https://redirect.github.com/maplibre/maplibre-gl-js/pull/8340">#8340</a>) (by <a href="https://github.com/cherenkov"><code>@cherenkov</code></a>)</li> <li>Add SDF rendering support for fill patterns, using <code>fill-color</code> as the foreground color (<a href="https://redirect.github.com/maplibre/maplibre-gl-js/pull/7747">#7747</a>) (by <a href="https://github.com/bradymadden97"><code>@bradymadden97</code></a> and <a href="https://github.com/deniial00"><code>@deniial00</code></a>)</li> <li>Warn once when the canvas is clamped to <code>maxCanvasSize</code>, which previously lowered the rendered resolution silently (<a href="https://redirect.github.com/maplibre/maplibre-gl-js/issues/8200">#8200</a>) (by <a href="https://github.com/str0kes"><code>@str0kes</code></a>)</li> </ul> <h3>🐞 Bug fixes</h3> <ul> <li>Fix a marker's popup jumping to another world copy when the marker is moved across the antimeridian on a zoomed-out map (<a href="https://redirect.github.com/maplibre/maplibre-gl-js/issues/5655">#5655</a>, <a href="https://redirect.github.com/maplibre/maplibre-gl-js/pull/8326">#8326</a>, continues <a href="https://redirect.github.com/maplibre/maplibre-gl-js/pull/5956">#5956</a>) (by <a href="https://github.com/yuiseki"><code>@yuiseki</code></a>)</li> <li>Fix terrain drape textures not being refreshed after zoom changes, causing stale rendering at the new zoom level (<a href="https://redirect.github.com/maplibre/maplibre-gl-js/issues/8251">#8251</a>) (by <a href="https://github.com/patte"><code>@patte</code></a>)</li> <li>Fix a gap between the sky and the ground at high pitch while globe transitions to mercator (<a href="https://redirect.github.com/maplibre/maplibre-gl-js/issues/7382">#7382</a>) (by <a href="https://github.com/birkskyum"><code>@birkskyum</code></a>)</li> <li>Treat an empty tile response (e.g. HTTP 204) as no data: raster-DEM tiles now load without elevation instead of failing with a <code>dem dimension mismatch</code> error, and empty raster tiles render as transparent (<a href="https://redirect.github.com/maplibre/maplibre-gl-js/issues/1551">#1551</a>) (by <a href="https://github.com/clement-igonet"><code>@clement-igonet</code></a>)</li> <li>Read the map container's dimensions before mutating it in <code>Map#_setupContainer</code>, avoiding a forced synchronous layout reflow on every map initialization (<a href="https://redirect.github.com/maplibre/maplibre-gl-js/issues/8307">#8307</a>) (by <a href="https://github.com/lazerg"><code>@lazerg</code></a>)</li> <li>Validate the <code>before</code> layer in <code>map.moveLayer</code> before reordering, so passing the id of a layer that does not exist leaves the layer order untouched instead of dropping the moved layer out of it (<a href="https://redirect.github.com/maplibre/maplibre-gl-js/issues/8301">#8301</a>) (by <a href="https://github.com/lazerg"><code>@lazerg</code></a>)</li> <li>Fix visible seams between hillshade tiles when using linear interpolation. (<a href="https://redirect.github.com/maplibre/maplibre-gl-js/pull/8302">#8302</a>) (by <a href="https://github.com/Turbo87"><code>@Turbo87</code></a>)</li> <li>Fix the map freezing when a render task throws an error (<a href="https://redirect.github.com/maplibre/maplibre-gl-js/issues/6093">#6093</a>) (by <a href="https://github.com/UberMouse"><code>@UberMouse</code></a>)</li> <li>Fix <code>getCameraAltitude()</code> returning <code>NaN</code> under <code>globe</code> and <code>vertical-perspective</code>, which disabled marker terrain occlusion and the camera terrain check; the altitude now follows the sphere (<a href="https://redirect.github.com/maplibre/maplibre-gl-js/issues/6584">#6584</a>) (by <a href="https://github.com/bigmistqke"><code>@bigmistqke</code></a> and <a href="https://github.com/patte"><code>@patte</code></a>)</li> <li>Draw an elevated symbol on globe when the symbol itself is in view but the ground under it is behind the horizon; occlusion now follows the line of sight to the elevated point (<a href="https://redirect.github.com/maplibre/maplibre-gl-js/issues/8253">#8253</a>) (by <a href="https://github.com/clement-igonet"><code>@clement-igonet</code></a>)</li> <li>Fix <code>setTiles</code> producing stale tile URLs when <code>loadTile</code> runs in the same frame (<a href="https://redirect.github.com/maplibre/maplibre-gl-js/pull/8323">#8323</a>) (by <a href="https://github.com/johncarmack1984"><code>@johncarmack1984</code></a> and <a href="https://github.com/nostrorom"><code>@nostrorom</code></a>)</li> <li>Keep the tile under an elevated symbol from being culled near the horizon, so a symbol with a large <code>symbol-height-offset</code> stays visible until it is behind the planet (<a href="https://redirect.github.com/maplibre/maplibre-gl-js/issues/8316">#8316</a>) (by <a href="https://github.com/clement-igonet"><code>@clement-igonet</code></a>)</li> </ul> </blockquote> </details> <details> <summary>Commits</summary> <ul> <li><a href="https://github.com/maplibre/maplibre-gl-js/commit/9df21da874e49ee4943aecb3350db9dfd98e7d1b"><code>9df21da</code></a> Bump js version to 6.8.0 (<a href="https://redirect.github.com/maplibre/maplibre-gl-js/issues/8371">#8371</a>)</li> <li><a href="https://github.com/maplibre/maplibre-gl-js/commit/05302adadc681543ee15ff60290bb70b8348a978"><code>05302ad</code></a> fix: compute pixelsPerMeter in the transform helper so getCameraAltitude() wo...</li> <li><a href="https://github.com/maplibre/maplibre-gl-js/commit/cf1781cb5ea3af00f9f9665649431d89ebd0856e"><code>cf1781c</code></a> test: serve the browser tests' tiles and styles from local fixtures (<a href="https://redirect.github.com/maplibre/maplibre-gl-js/issues/8367">#8367</a>)</li> <li><a href="https://github.com/maplibre/maplibre-gl-js/commit/055db89755ae902f4a1840308b270bc0313b0784"><code>055db89</code></a> refactor: unify bucket dependency finalization through addFeatures (<a href="https://redirect.github.com/maplibre/maplibre-gl-js/issues/8347">#8347</a>)</li> <li><a href="https://github.com/maplibre/maplibre-gl-js/commit/045a3ce58615fcb0ac155ac309bf9dbf23d1cbd6"><code>045a3ce</code></a> Warn when the canvas is clamped to maxCanvasSize (<a href="https://redirect.github.com/maplibre/maplibre-gl-js/issues/8275">#8275</a>)</li> <li><a href="https://github.com/maplibre/maplibre-gl-js/commit/d2d0371abacb40e6b8f3136af1eba5e93deecdb1"><code>d2d0371</code></a> Keep tiles under elevated symbols from being culled near the horizon (<a href="https://redirect.github.com/maplibre/maplibre-gl-js/issues/8319">#8319</a>)</li> <li><a href="https://github.com/maplibre/maplibre-gl-js/commit/0b33607be5d0ac25844696a7ba2eac1d8ea9dfe3"><code>0b33607</code></a> chore(deps-dev): bump puppeteer from 25.9.0 to 25.10.0 (<a href="https://redirect.github.com/maplibre/maplibre-gl-js/issues/8359">#8359</a>)</li> <li><a href="https://github.com/maplibre/maplibre-gl-js/commit/86d30b0234131b16d1b77681c946be53f88dc91a"><code>86d30b0</code></a> chore(deps-dev): bump devtools-protocol from 0.0.1687809 to 0.0.1692173 (<a href="https://redirect.github.com/maplibre/maplibre-gl-js/issues/8354">#8354</a>)</li> <li><a href="https://github.com/maplibre/maplibre-gl-js/commit/9a0884f180d7f591323183ff6694af0a2805803e"><code>9a0884f</code></a> chore(deps-dev): bump cspell from 10.2.0 to 10.2.1 (<a href="https://redirect.github.com/maplibre/maplibre-gl-js/issues/8360">#8360</a>)</li> <li><a href="https://github.com/maplibre/maplibre-gl-js/commit/3d42c642babf9d31d8fea3967f62c78d1facc2c5"><code>3d42c64</code></a> chore(deps-dev): bump postcss from 8.5.26 to 8.5.28 (<a href="https://redirect.github.com/maplibre/maplibre-gl-js/issues/8362">#8362</a>)</li> <li>Additional commits viewable in <a href="https://github.com/maplibre/maplibre-gl-js/compare/v6.7.0...v6.8.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.
