[//]: # (dependabot-start) ⚠️ **Dependabot is rebasing this PR** ⚠️ Rebasing might not happen immediately, so don't worry if this takes some time. Note: if you make any changes to this PR yourself, they will take precedence over the rebase. --- [//]: # (dependabot-end) Bumps [ol](https://github.com/openlayers/openlayers) from 10.6.1 to 10.7.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.7.0</h2> <p>With 40 pull requests over a period of almost 5 months, this long awaited release brings important bug fixes as well as exiting new features. The highlights are</p> <ul> <li>Several WebGL renderer bug fixes, along with improved memory management</li> <li>Updates for the Polyline feature format</li> <li>API improvements and bug fixes on the Select, Extent and Snap interactions</li> <li>Reprojection support for VectorTile layers</li> <li>Full web worker support for <code>Map</code>, with an (Offscreen)Canvas as map target</li> <li>Fixed cache and rendering for reprojected raster/image tile layers</li> <li>Several updated and new examples, including a globe-like map with Equal Earth projection</li> </ul> <h2>Upgrade notes</h2> <h3>Deprecation of ol/array's stableSort</h3> <p>Sorting is guaranteed to be stable since <a href="https://developer.mozilla.org/en-UseUS/docs/Web/JavaScript/Reference/Global_Objects/Array/sort#sort_stability">ECMAScript 2019</a>.</p> <pre lang="js"><code>// Before stableSort(arr, compareFnc); </code></pre> <pre lang="js"><code>// After arr.sort(compareFnc); </code></pre> <h3>Deprecation of functions in ol/format/Polyline</h3> <p>The following functions have been deprecated without replacement:</p> <ul> <li>decodeDeltas</li> <li>encodeDeltas</li> <li>decodeFloats</li> <li>encodeFloats</li> </ul> <h2>What's Changed</h2> <ul> <li>Updates for the 10.6.1 release by <a href="https://github.com/ahocevar"><code>@ahocevar</code></a> in <a href="https://redirect.github.com/openlayers/openlayers/pull/16920">openlayers/openlayers#16920</a></li> <li>Properly handle boolean attributes in WebGL expressions by <a href="https://github.com/jahow"><code>@jahow</code></a> in <a href="https://redirect.github.com/openlayers/openlayers/pull/16937">openlayers/openlayers#16937</a></li> <li>Improve memory usage by using a single buffer for WebGL layers by <a href="https://github.com/jahow"><code>@jahow</code></a> in <a href="https://redirect.github.com/openlayers/openlayers/pull/16942">openlayers/openlayers#16942</a></li> <li>Use bounding box from layer in WMTS capabilities by <a href="https://github.com/remiHau"><code>@remiHau</code></a> in <a href="https://redirect.github.com/openlayers/openlayers/pull/16936">openlayers/openlayers#16936</a></li> <li>Support url template with {z}/{x}/{y} by <a href="https://github.com/francbartoli"><code>@francbartoli</code></a> in <a href="https://redirect.github.com/openlayers/openlayers/pull/16956">openlayers/openlayers#16956</a></li> <li>ol.format.Polyline fixes by <a href="https://github.com/M393"><code>@M393</code></a> in <a href="https://redirect.github.com/openlayers/openlayers/pull/16955">openlayers/openlayers#16955</a></li> <li>Adding <code>setSrc</code> method to Icon style by <a href="https://github.com/pakb"><code>@pakb</code></a> in <a href="https://redirect.github.com/openlayers/openlayers/pull/16957">openlayers/openlayers#16957</a></li> <li>Select methods for adding/removing features by <a href="https://github.com/laundmo"><code>@laundmo</code></a> in <a href="https://redirect.github.com/openlayers/openlayers/pull/16923">openlayers/openlayers#16923</a></li> <li>Update ol-stac example by <a href="https://github.com/m-mohr"><code>@m-mohr</code></a> in <a href="https://redirect.github.com/openlayers/openlayers/pull/16962">openlayers/openlayers#16962</a></li> <li>Use WebGL instanced rendering to improve performance and memory usage by <a href="https://github.com/jahow"><code>@jahow</code></a> in <a href="https://redirect.github.com/openlayers/openlayers/pull/16959">openlayers/openlayers#16959</a></li> <li>Deprecate polyline encodeDeltas and decodeDeltas by <a href="https://github.com/M393"><code>@M393</code></a> in <a href="https://redirect.github.com/openlayers/openlayers/pull/16968">openlayers/openlayers#16968</a></li> <li>Fix <code>ol/style/Text</code> <code>clone()</code> to properly handle non-<code>Fill</code> instances… by <a href="https://github.com/ramzahn"><code>@ramzahn</code></a> in <a href="https://redirect.github.com/openlayers/openlayers/pull/16969">openlayers/openlayers#16969</a></li> <li>Fix offscreen canvas example by <a href="https://github.com/M393"><code>@M393</code></a> in <a href="https://redirect.github.com/openlayers/openlayers/pull/16971">openlayers/openlayers#16971</a></li> <li>Do not toggle tracing on pointerup after dragging by <a href="https://github.com/ahocevar"><code>@ahocevar</code></a> in <a href="https://redirect.github.com/openlayers/openlayers/pull/16975">openlayers/openlayers#16975</a></li> <li>chore(deps-dev): bump codemirror from 6.0.1 to 6.0.2 by <a href="https://github.com/dependabot"><code>@dependabot</code></a>[bot] in <a href="https://redirect.github.com/openlayers/openlayers/pull/16927">openlayers/openlayers#16927</a></li> <li>chore(deps-dev): bump webpack-sources from 3.3.2 to 3.3.3 by <a href="https://github.com/dependabot"><code>@dependabot</code></a>[bot] in <a href="https://redirect.github.com/openlayers/openlayers/pull/16933">openlayers/openlayers#16933</a></li> </ul> <!-- raw HTML omitted --> </blockquote> <p>... (truncated)</p> </details> <details> <summary>Commits</summary> <ul> <li><a href="4a989ef0ae"><code>4a989ef</code></a> Updates for the 10.7.0 release</li> <li><a href="c9d2b84d2f"><code>c9d2b84</code></a> Merge pull request <a href="https://redirect.github.com/openlayers/openlayers/issues/17162">#17162</a> from ahocevar/reprojection-cache</li> <li><a href="b59141e775"><code>b59141e</code></a> Merge pull request <a href="https://redirect.github.com/openlayers/openlayers/issues/17176">#17176</a> from mradamcox/update-modify-deletecondition-docs</li> <li><a href="520a8fd649"><code>520a8fd</code></a> add docs codeblock for multiple deleteCondition checks</li> <li><a href="9a07b3dd53"><code>9a07b3d</code></a> Merge pull request <a href="https://redirect.github.com/openlayers/openlayers/issues/17170">#17170</a> from openlayers/dependabot/npm_and_yarn/rollup/plug...</li> <li><a href="7a36d94933"><code>7a36d94</code></a> Work around typescript issue</li> <li><a href="1aa30a8117"><code>1aa30a8</code></a> chore(deps-dev): bump <code>@rollup/plugin-alias</code> from 5.1.1 to 6.0.0</li> <li><a href="54e7b4370c"><code>54e7b43</code></a> Merge pull request <a href="https://redirect.github.com/openlayers/openlayers/issues/17174">#17174</a> from openlayers/dependabot/github_actions/actions/u...</li> <li><a href="661dd58701"><code>661dd58</code></a> Merge pull request <a href="https://redirect.github.com/openlayers/openlayers/issues/17173">#17173</a> from openlayers/dependabot/npm_and_yarn/puppeteer-2...</li> <li><a href="2fbce76323"><code>2fbce76</code></a> Merge pull request <a href="https://redirect.github.com/openlayers/openlayers/issues/17172">#17172</a> from openlayers/dependabot/npm_and_yarn/rollup/plug...</li> <li>Additional commits viewable in <a href="https://github.com/openlayers/openlayers/compare/v10.6.1...v10.7.0">compare view</a></li> </ul> </details> <details> <summary>Maintainer changes</summary> <p>This version was pushed to npm by [GitHub Actions](<a href="https://www.npmjs.com/~GitHub">https://www.npmjs.com/~GitHub</a> Actions), a new releaser for ol since your current version.</p> </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 merge` will merge this PR after your CI passes on it - `@dependabot squash and merge` will squash and merge this PR after your CI passes on it - `@dependabot cancel merge` will cancel a previously requested merge and block automerging - `@dependabot reopen` will reopen this PR if it is closed - `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually - `@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
For E2E testing we use Cypress
Cypress doesn't start a server so you'll need to start one manually by running npm run start.
Now open a terminal and run the following using chrome:
npm run test
or firefox:
npm run test -- --browser firefox
See the following docs for more info: (Launching Browsers)[https://docs.cypress.io/guides/guides/launching-browsers]
You can also see the tests as they run or select which suites to run by executing:
npm run cy:open
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.
