Bumps [ol](https://github.com/openlayers/openlayers) from 10.9.0 to 10.10.0. <details> <summary>Release notes</summary> <p><em>Sourced from <a href="https://github.com/openlayers/openlayers/releases">ol's releases</a>.</em></p> <blockquote> <h2>v10.10.0</h2> <h1>10.10.0</h1> <p>The 10.10 release brings improvements throughout the library — from tile and vector rendering to sources, formats and interactions. The highlights are</p> <ul> <li>Text support in the WebGL vector renderers, plus stale tile handling for WebGL tile layers</li> <li>Smoother tile rendering: instead of clipping and redrawing full tiles, only the remainders of lower zoom levels are drawn</li> <li>WMTS and OGC tile grids now honor the advertised tile matrix set limits, so no tiles are requested outside a layer's data extent</li> <li>GeoZarr gains selection of non-spatial dimensions, e.g. for time series</li> <li>Text along lines honors <code>offsetX</code> and is split into graphemes, so ligatures are no longer cut apart</li> <li>Fixes for the Modify interaction's tracing, vector tile resolutions, decluttering z-index order, and text rendering of long lines</li> </ul> <h2>Upgrade notes</h2> <h3>Usage of Intl.Segmenter</h3> <p>TextPath now relies on <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/Segmenter">Intl.Segmenter</a>. For support of very old browsers (e.g. Firefox before version 125), a polyfill is available: <a href="https://formatjs.github.io/docs/polyfills/intl-segmenter/">https://formatjs.github.io/docs/polyfills/intl-segmenter/</a>.</p> <h3>Deprecation of <code>ol/source/BingMaps</code></h3> <p>Bing Maps for Enterprise is being retired on June 30th, 2028. The <code>BingMaps</code> source has been deprecated. Use <code>ol/source/ImageTile</code> with the Azure Maps tile API instead. See the <a href="https://openlayers.org/en/latest/examples/azure-maps.html">azure-maps example</a> for guidance.</p> <pre lang="js"><code>// Before new BingMaps({ key: 'YOUR_BING_MAPS_KEY', imagerySet: 'RoadOnDemand', }) <p>// After<br /> new ImageTile({<br /> url: <code>https://atlas.microsoft.com/map/tile?subscription-key=YOUR_AZURE_MAPS_KEY&amp;api-version=2.0&amp;tilesetId=microsoft.base.road&amp;zoom={z}&amp;x={x}&amp;y={y}&amp;tileSize=256</code>,<br /> attributions: <code>© ${new Date().getFullYear()} TomTom, Microsoft</code>,<br /> })<br /> </code></pre></p> <h3><code>createFromCapabilitiesMatrixSet</code> now respects <code>TileMatrixSetLimits</code></h3> <p>When a <code>matrixLimits</code> array is passed to <code>createFromCapabilitiesMatrixSet</code>, the returned tile grid will now restrict tile requests to the <code>MinTileRow</code>/<code>MaxTileRow</code>/<code>MinTileCol</code>/<code>MaxTileCol</code> bounds advertised for each zoom level. Previously those bounds were ignored and the full matrix extent was used, causing tile requests outside the layer's data extent.</p> <p>If you were passing <code>matrixLimits</code> only to filter zoom levels and relied on the full matrix range being loaded at each level, you can omit the <code>matrixLimits</code> argument or pass an empty array to restore the previous behavior.</p> <!-- raw HTML omitted --> </blockquote> <p>... (truncated)</p> </details> <details> <summary>Commits</summary> <ul> <li><a href="https://github.com/openlayers/openlayers/commit/a23f25832d9d24ded41a33881d9983ee7df4a94f"><code>a23f258</code></a> Updates for the 10.10.0 release</li> <li><a href="https://github.com/openlayers/openlayers/commit/11d1aad09576d609ce2a6d1cb7bbdc739054b3b1"><code>11d1aad</code></a> Merge pull request <a href="https://redirect.github.com/openlayers/openlayers/issues/17572">#17572</a> from hyeonjun-L/reset-loader-in-setparams</li> <li><a href="https://github.com/openlayers/openlayers/commit/3f7bb9e08cad3ec5dbc872506dfd3a0d82f08b5f"><code>3f7bb9e</code></a> Merge pull request <a href="https://redirect.github.com/openlayers/openlayers/issues/17579">#17579</a> from ahocevar/vite-examples-base-path</li> <li><a href="https://github.com/openlayers/openlayers/commit/ded0e3bb4a32866fd24d52a9a2a0e56eeb8089fb"><code>ded0e3b</code></a> Merge pull request <a href="https://redirect.github.com/openlayers/openlayers/issues/17577">#17577</a> from ahocevar/node-tests-vitest</li> <li><a href="https://github.com/openlayers/openlayers/commit/2218549fc5b3d8b489289a6e4e430a3c201d336f"><code>2218549</code></a> Merge pull request <a href="https://redirect.github.com/openlayers/openlayers/issues/17576">#17576</a> from sobol-sudo/support-offsetx-for-text-along-line</li> <li><a href="https://github.com/openlayers/openlayers/commit/ac0d1e50f4ff42eaa1d8af9671e54e7ddd6cc578"><code>ac0d1e5</code></a> Merge pull request <a href="https://redirect.github.com/openlayers/openlayers/issues/17575">#17575</a> from umap-project/fix-textpath-emoji</li> <li><a href="https://github.com/openlayers/openlayers/commit/0e37c0b9fcfab324c2260232be0a5d2d19b7e831"><code>0e37c0b</code></a> Reduce pixel tolerance to prevent future regressions</li> <li><a href="https://github.com/openlayers/openlayers/commit/b186a0c9521066faeda402967f3a75c455692a77"><code>b186a0c</code></a> Update reference images</li> <li><a href="https://github.com/openlayers/openlayers/commit/62a916a0ad887997aa00834b272ad955b0faafdc"><code>62a916a</code></a> fixup: fix lint issue</li> <li><a href="https://github.com/openlayers/openlayers/commit/9021c86981b170e00c3f084615c90f0fe75774f1"><code>9021c86</code></a> Add rendering test for offsetX along a line</li> <li>Additional commits viewable in <a href="https://github.com/openlayers/openlayers/compare/v10.9.0...v10.10.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.
