Include layer visibility in the URL

This commit is contained in:
Tim Schaub
2022-05-21 10:38:31 -06:00
parent 6690dc99dd
commit cf7daf36d6
3 changed files with 71 additions and 17 deletions

View File

@@ -4,6 +4,9 @@ title: Map Link
shortdesc: Synchronizing map state with the URL.
docs: >
The `Link` interaction allows you to synchronize the map state with the URL.
The view center, zoom level, and rotation will be reflected in the URL as you
navigate around the map. Layer visibility is also reflected in the URL.
Reloading the page restores the map view state.
tags: "link, permalink, url, query, search, params"
---
<div id="map" class="map"></div>