Bumps [maplibre-gl](https://github.com/maplibre/maplibre-gl-js) from 6.16.0 to 6.18.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.18.0</h2> <h3>✨ Features and improvements</h3> <ul> <li>Add <code>raster-layer-blend</code> support (<a href="https://redirect.github.com/maplibre/maplibre-gl-js/pull/8986">#8986</a>) (by <a href="https://github.com/birkskyum"><code>@birkskyum</code></a>)</li> <li>Add <code>{line,fill}-layer-blend</code> support (<a href="https://redirect.github.com/maplibre/maplibre-gl-js/pull/8073">#8073</a>) (by <a href="https://github.com/CommanderStorm"><code>@CommanderStorm</code></a>)</li> <li>Change rotation inertia to match maplibre-native (<a href="https://redirect.github.com/maplibre/maplibre-gl-js/pull/8970">#8970</a>) (by <a href="https://github.com/HarelM"><code>@HarelM</code></a>)</li> <li>Speed up loading of tiles whose layers list the same feature ids twice in ascending order (<a href="https://redirect.github.com/maplibre/maplibre-gl-js/pull/8965">#8965</a>) (by <a href="https://github.com/DoFabien"><code>@DoFabien</code></a>)</li> <li>Improve search descriptions for three map examples (<a href="https://redirect.github.com/maplibre/maplibre-gl-js/pull/9002">#9002</a>) (by <a href="https://github.com/Harshinit01312"><code>@Harshinit01312</code></a>)</li> </ul> <h3>🐞 Bug fixes</h3> <ul> <li>Fix glitches between consecutive <code>-layer-opacity</code> or <code>-layer-blend</code> layers on Intel Gen12 with Mesa 24.3 to 25.3.1 (<a href="https://redirect.github.com/maplibre/maplibre-gl-js/pull/9006">#9006</a>) (by <a href="https://github.com/gravitystorm"><code>@gravitystorm</code></a>)</li> <li>Fix fire move and zoom events from setMaxBounds when the new bounds change the camera (<a href="https://redirect.github.com/maplibre/maplibre-gl-js/pull/8998">#8998</a>) (by <a href="https://github.com/kkokkojeong"><code>@kkokkojeong</code></a>)</li> <li>Fix scale an icon fitted to its text by icon-size without growing the padding (<a href="https://redirect.github.com/maplibre/maplibre-gl-js/pull/8952">#8952</a>) (by <a href="https://github.com/Syogo-Suganoya"><code>@Syogo-Suganoya</code></a>)</li> <li>Fix queryRenderedFeatures missing fill-extrusion walls and roofs on the globe (<a href="https://redirect.github.com/maplibre/maplibre-gl-js/pull/8926">#8926</a>) (by <a href="https://github.com/mfaeezshabbir"><code>@mfaeezshabbir</code></a>)</li> <li>Fix map jumping when dragging or zooming above or below the identity projection (<a href="https://redirect.github.com/maplibre/maplibre-gl-js/pull/8964">#8964</a>) (by <a href="https://github.com/birkskyum"><code>@birkskyum</code></a>)</li> </ul> <h2>v6.17.0</h2> <h3>✨ Features and improvements</h3> <ul> <li>feat: Add experimental <code>sparse</code> vector source option so a missing tile is sliced from an ancestor (<a href="https://redirect.github.com/maplibre/maplibre-gl-js/pull/8335">#8335</a>) (by <a href="https://github.com/johncarmack1984"><code>@johncarmack1984</code></a>)</li> </ul> <h3>🐞 Bug fixes</h3> <ul> <li>Fix a layer added with addLayer drawing nothing beyond its source's m… (<a href="https://redirect.github.com/maplibre/maplibre-gl-js/pull/8919">#8919</a>) (by <a href="https://github.com/igor-suhorukov"><code>@igor-suhorukov</code></a>)</li> <li>Fix keep offset line labels in order where the line doubles back (<a href="https://redirect.github.com/maplibre/maplibre-gl-js/pull/8892">#8892</a>) (by <a href="https://github.com/Syogo-Suganoya"><code>@Syogo-Suganoya</code></a>)</li> <li>Fix camera movement bugs by using task scheduling (<a href="https://redirect.github.com/maplibre/maplibre-gl-js/pull/8961">#8961</a>) (by <a href="https://github.com/HarelM"><code>@HarelM</code></a>)</li> <li>Fix map not loading from a file or in a sandboxed iframe (<a href="https://redirect.github.com/maplibre/maplibre-gl-js/pull/8912">#8912</a>) (by <a href="https://github.com/birkskyum"><code>@birkskyum</code></a>)</li> <li>Fix symbol text and icons not rendering on iOS 15 due to an ANGLE shader compiler bug (<a href="https://redirect.github.com/maplibre/maplibre-gl-js/issues/8840">#8840</a>) (by <a href="https://github.com/peter-alexander"><code>@peter-alexander</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.18.0</h2> <h3>✨ Features and improvements</h3> <ul> <li>Add <code>raster-layer-blend</code> support (<a href="https://redirect.github.com/maplibre/maplibre-gl-js/pull/8986">#8986</a>) (by <a href="https://github.com/birkskyum"><code>@birkskyum</code></a>)</li> <li>Add <code>{line,fill}-layer-blend</code> support (<a href="https://redirect.github.com/maplibre/maplibre-gl-js/pull/8073">#8073</a>) (by <a href="https://github.com/CommanderStorm"><code>@CommanderStorm</code></a>)</li> <li>Change rotation inertia to match maplibre-native (<a href="https://redirect.github.com/maplibre/maplibre-gl-js/pull/8970">#8970</a>) (by <a href="https://github.com/HarelM"><code>@HarelM</code></a>)</li> <li>Speed up loading of tiles whose layers list the same feature ids twice in ascending order (<a href="https://redirect.github.com/maplibre/maplibre-gl-js/pull/8965">#8965</a>) (by <a href="https://github.com/DoFabien"><code>@DoFabien</code></a>)</li> <li>Improve search descriptions for three map examples (<a href="https://redirect.github.com/maplibre/maplibre-gl-js/pull/9002">#9002</a>) (by <a href="https://github.com/Harshinit01312"><code>@Harshinit01312</code></a>)</li> </ul> <h3>🐞 Bug fixes</h3> <ul> <li>Fix glitches between consecutive <code>-layer-opacity</code> or <code>-layer-blend</code> layers on Intel Gen12 with Mesa 24.3 to 25.3.1 (<a href="https://redirect.github.com/maplibre/maplibre-gl-js/pull/9006">#9006</a>) (by <a href="https://github.com/gravitystorm"><code>@gravitystorm</code></a>)</li> <li>Fix fire move and zoom events from setMaxBounds when the new bounds change the camera (<a href="https://redirect.github.com/maplibre/maplibre-gl-js/pull/8998">#8998</a>) (by <a href="https://github.com/kkokkojeong"><code>@kkokkojeong</code></a>)</li> <li>Fix scale an icon fitted to its text by icon-size without growing the padding (<a href="https://redirect.github.com/maplibre/maplibre-gl-js/pull/8952">#8952</a>) (by <a href="https://github.com/Syogo-Suganoya"><code>@Syogo-Suganoya</code></a>)</li> <li>Fix queryRenderedFeatures missing fill-extrusion walls and roofs on the globe (<a href="https://redirect.github.com/maplibre/maplibre-gl-js/pull/8926">#8926</a>) (by <a href="https://github.com/mfaeezshabbir"><code>@mfaeezshabbir</code></a>)</li> <li>Fix map jumping when dragging or zooming above or below the identity projection (<a href="https://redirect.github.com/maplibre/maplibre-gl-js/pull/8964">#8964</a>) (by <a href="https://github.com/birkskyum"><code>@birkskyum</code></a>)</li> </ul> <h2>6.17.0</h2> <h3>✨ Features and improvements</h3> <ul> <li>Add experimental <code>sparse</code> vector source option so a missing tile is sliced from an ancestor (<a href="https://redirect.github.com/maplibre/maplibre-gl-js/pull/8335">#8335</a>) (by <a href="https://github.com/johncarmack1984"><code>@johncarmack1984</code></a>)</li> </ul> <h3>🐞 Bug fixes</h3> <ul> <li>Fix a layer added with addLayer drawing nothing beyond its source's m… (<a href="https://redirect.github.com/maplibre/maplibre-gl-js/pull/8919">#8919</a>) (by <a href="https://github.com/igor-suhorukov"><code>@igor-suhorukov</code></a>)</li> <li>Fix keep offset line labels in order where the line doubles back (<a href="https://redirect.github.com/maplibre/maplibre-gl-js/pull/8892">#8892</a>) (by <a href="https://github.com/Syogo-Suganoya"><code>@Syogo-Suganoya</code></a>)</li> <li>Fix camera movement bugs by using task scheduling (<a href="https://redirect.github.com/maplibre/maplibre-gl-js/pull/8961">#8961</a>) (by <a href="https://github.com/HarelM"><code>@HarelM</code></a>)</li> <li>Fix map not loading from a file or in a sandboxed iframe (<a href="https://redirect.github.com/maplibre/maplibre-gl-js/pull/8912">#8912</a>) (by <a href="https://github.com/birkskyum"><code>@birkskyum</code></a>)</li> <li>Fix symbol text and icons not rendering on iOS 15 due to an ANGLE shader compiler bug (<a href="https://redirect.github.com/maplibre/maplibre-gl-js/issues/8840">#8840</a>) (by <a href="https://github.com/peter-alexander"><code>@peter-alexander</code></a>)</li> </ul> </blockquote> </details> <details> <summary>Commits</summary> <ul> <li><a href="https://github.com/maplibre/maplibre-gl-js/commit/7ff68855dcea2c37ffa2f02932073613714692cd"><code>7ff6885</code></a> Bump js version to 6.18.0 (<a href="https://redirect.github.com/maplibre/maplibre-gl-js/issues/9007">#9007</a>)</li> <li><a href="https://github.com/maplibre/maplibre-gl-js/commit/6ce65922df5ee868707d781fb21dc08763755a4c"><code>6ce6592</code></a> fix: glitches between consecutive <code>-layer-opacity</code> or <code>-layer-blend</code> layers o...</li> <li><a href="https://github.com/maplibre/maplibre-gl-js/commit/ade7bc31565e3df24a9edbd442ffe1b66b2733fa"><code>ade7bc3</code></a> docs: guide authors on searchable example metadata (<a href="https://redirect.github.com/maplibre/maplibre-gl-js/issues/9005">#9005</a>)</li> <li><a href="https://github.com/maplibre/maplibre-gl-js/commit/1f3848d96c876d190ffcf4eecead77f4073a8d33"><code>1f3848d</code></a> refactor: CSC-1.11 implement the transform once for all projections (<a href="https://redirect.github.com/maplibre/maplibre-gl-js/issues/8995">#8995</a>)</li> <li><a href="https://github.com/maplibre/maplibre-gl-js/commit/ece6b6fc4451255b1057a8f07423c920a01ee173"><code>ece6b6f</code></a> docs: improve search descriptions for three map examples (<a href="https://redirect.github.com/maplibre/maplibre-gl-js/issues/9002">#9002</a>)</li> <li><a href="https://github.com/maplibre/maplibre-gl-js/commit/ce83be622e7a1cdbf35901da9d63895335b70320"><code>ce83be6</code></a> chore(deps-dev): bump monocart-coverage-reports from 3.2.0 to 3.2.1 (<a href="https://redirect.github.com/maplibre/maplibre-gl-js/issues/9001">#9001</a>)</li> <li><a href="https://github.com/maplibre/maplibre-gl-js/commit/2cbb83ddc380e5f5267e736266ba71bf1b122a4c"><code>2cbb83d</code></a> fix: fire move and zoom events from setMaxBounds when the new bounds change t...</li> <li><a href="https://github.com/maplibre/maplibre-gl-js/commit/e0b109e0810b6bacdbe09791e36ae91e8ad74d0e"><code>e0b109e</code></a> fix: scale an icon fitted to its text by icon-size without growing the paddin...</li> <li><a href="https://github.com/maplibre/maplibre-gl-js/commit/1418640d8086e3aae604bf0b5ff80ae61f071910"><code>1418640</code></a> fix: queryRenderedFeatures missing fill-extrusion walls and roofs on the glob...</li> <li><a href="https://github.com/maplibre/maplibre-gl-js/commit/8301901415d6b2629f0e58b2e3454f4202dcec2c"><code>8301901</code></a> chore: improve classes hierarchy between handler manger and map (<a href="https://redirect.github.com/maplibre/maplibre-gl-js/issues/8994">#8994</a>)</li> <li>Additional commits viewable in <a href="https://github.com/maplibre/maplibre-gl-js/compare/v6.16.0...v6.18.0">compare view</a></li> </ul> </details> <br /> 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.
