Bumps [maplibre-gl](https://github.com/maplibre/maplibre-gl-js) from 6.15.0 to 6.16.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.16.0</h2> <h3>✨ Features and improvements</h3> <ul> <li>Allow <code>Map#setMaxBounds</code> to constrain one geographic axis without constraining the other (<a href="https://redirect.github.com/maplibre/maplibre-gl-js/issues/6148">#6148</a>) (by <a href="https://github.com/erenbati"><code>@erenbati</code></a>)</li> <li>Allow calling <code>new Map({ transformStyle: { ... }})</code> to provide a style transformation function similar to the same option in <code>setStyle</code> (<a href="https://redirect.github.com/maplibre/maplibre-gl-js/pull/8786">#8786</a>) (by <a href="https://github.com/hiddewie"><code>@hiddewie</code></a>)</li> <li>Add accept headers for MLT according to the current capabilities (<a href="https://redirect.github.com/maplibre/maplibre-gl-js/pull/7483">#7483</a>) (by <a href="https://github.com/CommanderStorm"><code>@CommanderStorm</code></a>)</li> </ul> <h3>🐞 Bug fixes</h3> <ul> <li>Fix expired vector tiles erroring on their next reload, e.g. after <code>setFilter()</code>, when the server returns an unchanged ETag (<a href="https://redirect.github.com/maplibre/maplibre-gl-js/pull/8771">#8771</a>) (by <a href="https://github.com/DoFabien"><code>@DoFabien</code></a>)</li> <li>Fix <code>GeoJSONSource.getBounds</code> throwing when a feature has a <code>null</code> geometry (<a href="https://redirect.github.com/maplibre/maplibre-gl-js/pull/8814">#8814</a>) (by <a href="https://github.com/auraseb"><code>@auraseb</code></a>)</li> <li>Fix characters covered by <code>font-faces</code> switching to glyphs from the glyphs URL once their PBF range is downloaded (<a href="https://redirect.github.com/maplibre/maplibre-gl-js/pull/8490">#8490</a>) (by <a href="https://github.com/NEKOYASAN"><code>@NEKOYASAN</code></a>)</li> <li>Fix the map shrinking to a single stretched pixel for good when it resizes after the WebGL context is lost but before <code>webglcontextlost</code> fires, e.g. when a mobile browser returns from the background (<a href="https://redirect.github.com/maplibre/maplibre-gl-js/issues/8837">#8837</a>) (by <a href="https://github.com/lazerg"><code>@lazerg</code></a>)</li> <li>Fix <code>TypeError: Cannot read properties of undefined (reading '0')</code> when drawing a line layer with a constant <code>line-dasharray</code> whose dash positions were never set (<a href="https://redirect.github.com/maplibre/maplibre-gl-js/issues/8846">#8846</a>) (by <a href="https://github.com/yulman2207"><code>@yulman2207</code></a>)</li> <li>Fix <code>GeoJSONSource.updateData</code> applying a queued update to a feature that a later call adds again (<a href="https://redirect.github.com/maplibre/maplibre-gl-js/issues/8804">#8804</a>) (by <a href="https://github.com/architpai"><code>@architpai</code></a>)</li> <li>Fix images added with <code>addImage</code>, e.g. from <code>styleimagemissing</code>, not showing in tiles that were reloaded after the map was panned across 180° (<a href="https://redirect.github.com/maplibre/maplibre-gl-js/pull/8858">#8858</a>) (by <a href="https://github.com/birkskyum"><code>@birkskyum</code></a>)</li> <li>Fix maps that stop loading after iOS shuts down their background workers to save memory (<a href="https://redirect.github.com/maplibre/maplibre-gl-js/issues/8461">#8461</a>, <a href="https://redirect.github.com/maplibre/maplibre-gl-js/pull/8491">#8491</a>) (by <a href="https://github.com/lucaswoj"><code>@lucaswoj</code></a>, <a href="https://github.com/ingalls"><code>@ingalls</code></a>, and <a href="https://github.com/HarelM"><code>@HarelM</code></a>)</li> <li>Fix vector tiles past the source's maxzoom failing to load when slicing leaves a one-point line (<a href="https://redirect.github.com/maplibre/maplibre-gl-js/issues/8681">#8681</a>) (by <a href="https://github.com/johncarmack1984"><code>@johncarmack1984</code></a>)</li> <li>Fix terrain drawing flat at low zoom, where its tiles are at the DEM source's minzoom (<a href="https://redirect.github.com/maplibre/maplibre-gl-js/issues/8772">#8772</a>) (by <a href="https://github.com/johncarmack1984"><code>@johncarmack1984</code></a>)</li> <li>Fix <code>queryRenderedFeatures</code> missing part of a GeoJSON polygon whose ring does not repeat its first point (<a href="https://redirect.github.com/maplibre/maplibre-gl-js/issues/8874">#8874</a>) (by <a href="https://github.com/johncarmack1984"><code>@johncarmack1984</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.16.0</h2> <h3>✨ Features and improvements</h3> <ul> <li>Allow <code>Map#setMaxBounds</code> to constrain one geographic axis without constraining the other (<a href="https://redirect.github.com/maplibre/maplibre-gl-js/issues/6148">#6148</a>) (by <a href="https://github.com/erenbati"><code>@erenbati</code></a>)</li> <li>Allow calling <code>new Map({ transformStyle: { ... }})</code> to provide a style transformation function similar to the same option in <code>setStyle</code> (<a href="https://redirect.github.com/maplibre/maplibre-gl-js/pull/8786">#8786</a>) (by <a href="https://github.com/hiddewie"><code>@hiddewie</code></a>)</li> <li>Add accept headers for MLT according to the current capabilities (<a href="https://redirect.github.com/maplibre/maplibre-gl-js/pull/7483">#7483</a>) (by <a href="https://github.com/CommanderStorm"><code>@CommanderStorm</code></a>)</li> </ul> <h3>🐞 Bug fixes</h3> <ul> <li>Fix expired vector tiles erroring on their next reload, e.g. after <code>setFilter()</code>, when the server returns an unchanged ETag (<a href="https://redirect.github.com/maplibre/maplibre-gl-js/pull/8771">#8771</a>) (by <a href="https://github.com/DoFabien"><code>@DoFabien</code></a>)</li> <li>Fix <code>GeoJSONSource.getBounds</code> throwing when a feature has a <code>null</code> geometry (<a href="https://redirect.github.com/maplibre/maplibre-gl-js/pull/8814">#8814</a>) (by <a href="https://github.com/auraseb"><code>@auraseb</code></a>)</li> <li>Fix characters covered by <code>font-faces</code> switching to glyphs from the glyphs URL once their PBF range is downloaded (<a href="https://redirect.github.com/maplibre/maplibre-gl-js/pull/8490">#8490</a>) (by <a href="https://github.com/NEKOYASAN"><code>@NEKOYASAN</code></a>)</li> <li>Fix the map shrinking to a single stretched pixel for good when it resizes after the WebGL context is lost but before <code>webglcontextlost</code> fires, e.g. when a mobile browser returns from the background (<a href="https://redirect.github.com/maplibre/maplibre-gl-js/issues/8837">#8837</a>) (by <a href="https://github.com/lazerg"><code>@lazerg</code></a>)</li> <li>Fix <code>TypeError: Cannot read properties of undefined (reading '0')</code> when drawing a line layer with a constant <code>line-dasharray</code> whose dash positions were never set (<a href="https://redirect.github.com/maplibre/maplibre-gl-js/issues/8846">#8846</a>) (by <a href="https://github.com/yulman2207"><code>@yulman2207</code></a>)</li> <li>Fix <code>GeoJSONSource.updateData</code> applying a queued update to a feature that a later call adds again (<a href="https://redirect.github.com/maplibre/maplibre-gl-js/issues/8804">#8804</a>) (by <a href="https://github.com/architpai"><code>@architpai</code></a>)</li> <li>Fix images added with <code>addImage</code>, e.g. from <code>styleimagemissing</code>, not showing in tiles that were reloaded after the map was panned across 180° (<a href="https://redirect.github.com/maplibre/maplibre-gl-js/pull/8858">#8858</a>) (by <a href="https://github.com/birkskyum"><code>@birkskyum</code></a>)</li> <li>Fix maps that stop loading after iOS shuts down their background workers to save memory (<a href="https://redirect.github.com/maplibre/maplibre-gl-js/issues/8461">#8461</a>, <a href="https://redirect.github.com/maplibre/maplibre-gl-js/pull/8491">#8491</a>) (by <a href="https://github.com/lucaswoj"><code>@lucaswoj</code></a>, <a href="https://github.com/ingalls"><code>@ingalls</code></a>, and <a href="https://github.com/HarelM"><code>@HarelM</code></a>)</li> <li>Fix vector tiles past the source's maxzoom failing to load when slicing leaves a one-point line (<a href="https://redirect.github.com/maplibre/maplibre-gl-js/issues/8681">#8681</a>) (by <a href="https://github.com/johncarmack1984"><code>@johncarmack1984</code></a>)</li> <li>Fix terrain drawing flat at low zoom, where its tiles are at the DEM source's minzoom (<a href="https://redirect.github.com/maplibre/maplibre-gl-js/issues/8772">#8772</a>) (by <a href="https://github.com/johncarmack1984"><code>@johncarmack1984</code></a>)</li> <li>Fix <code>queryRenderedFeatures</code> missing part of a GeoJSON polygon whose ring does not repeat its first point (<a href="https://redirect.github.com/maplibre/maplibre-gl-js/issues/8874">#8874</a>) (by <a href="https://github.com/johncarmack1984"><code>@johncarmack1984</code></a>)</li> </ul> </blockquote> </details> <details> <summary>Commits</summary> <ul> <li><a href="https://github.com/maplibre/maplibre-gl-js/commit/538a7680ab16d5cf5a6564ee0ce72a11be14d142"><code>538a768</code></a> Bump js version to 6.16.0 (<a href="https://redirect.github.com/maplibre/maplibre-gl-js/issues/8880">#8880</a>)</li> <li><a href="https://github.com/maplibre/maplibre-gl-js/commit/2c7bcbdc2117913fa4e1e168b46afaa9eaa998a6"><code>2c7bcbd</code></a> chore(deps-dev): bump fast-uri (<a href="https://redirect.github.com/maplibre/maplibre-gl-js/issues/8878">#8878</a>)</li> <li><a href="https://github.com/maplibre/maplibre-gl-js/commit/93374993c80463cc7660062530c694de6ace25ca"><code>9337499</code></a> chore(deps): bump fast-uri from 3.1.7 to 3.1.9 (<a href="https://redirect.github.com/maplibre/maplibre-gl-js/issues/8877">#8877</a>)</li> <li><a href="https://github.com/maplibre/maplibre-gl-js/commit/23d35d905be82b9db7ed4c67810d74593059ec8e"><code>23d35d9</code></a> fix: <code>queryRenderedFeatures</code> missing part of a GeoJSON polygon whose ring doe...</li> <li><a href="https://github.com/maplibre/maplibre-gl-js/commit/33a237066fa9aca2258af950680717a27869dfe7"><code>33a2370</code></a> fix: keep terrain relief at low zoom, where its tiles are at the DEM source's...</li> <li><a href="https://github.com/maplibre/maplibre-gl-js/commit/23e09377a5c7997b825d3c57f9b6872cbb2c3c03"><code>23e0937</code></a> fix: images added with <code>addImage</code> missing from tiles reloaded after panning a...</li> <li><a href="https://github.com/maplibre/maplibre-gl-js/commit/393b6e989cc59bf5ac5f36fe88001bf2fc19f483"><code>393b6e9</code></a> CSC-1.8 Read the camera state directly in the projection classes (<a href="https://redirect.github.com/maplibre/maplibre-gl-js/issues/8870">#8870</a>)</li> <li><a href="https://github.com/maplibre/maplibre-gl-js/commit/fc727114698ec7819fe80a20472ff5cec5975760"><code>fc72711</code></a> fix: keep two points when clipping a line that ends on the slice's edge (<a href="https://redirect.github.com/maplibre/maplibre-gl-js/issues/8869">#8869</a>)</li> <li><a href="https://github.com/maplibre/maplibre-gl-js/commit/da14df808f394e34d3aa3797b771df11357c769c"><code>da14df8</code></a> CSC-1.7 Pass the tile zoom to the terrain elevation lookups instead of the tr...</li> <li><a href="https://github.com/maplibre/maplibre-gl-js/commit/3ea36bb61fd93ed9f67e38091bdd8f12948b6cf1"><code>3ea36bb</code></a> CSC-1.6 Split the camera calculations from the writes in the projection class...</li> <li>Additional commits viewable in <a href="https://github.com/maplibre/maplibre-gl-js/compare/v6.15.0...v6.16.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.
