{"version":"1.0","type":"rich","title":"Leaflet with scale bar and URL hash","description":"This example demonstrates a Leaflet map with a scale bar and URL hash synchronization, allowing the map’s zoom level and center coordinates to be reflected in the page URL. The map uses Stamen Toner tiles with an OpenStreetMap attribution, and the scale bar is added via `L.control.scale()`. The `leaflet-hash.js` plugin updates the hash (e.g., `#2/30.0/0.0`) on map moves and restores the view from the hash on load, using the `moveend` and `hashchange` events. The code also includes a fallback interval for older browsers without hashchange support.","provider_name":"VizHub AI Studio","provider_url":"https://next.vizhub.com","html":"<iframe src=\"https://next.vizhub.com/viz/gist-0dff3feb062c11c88b8cc150aef60235?mode=embed\" width=\"960\" height=\"500\" scrolling=\"no\" frameborder=\"1\"></iframe>","width":960,"height":500,"cache_age":3600}