Skip to main content
100%

Sample_Leaflet_columns

✓ Published1🌍 Public
FFrancesco Di Filippo
Last edited Mar 8, 2024
Created on Mar 8, 2024

This example pairs an interactive Leaflet map with an HTML list to demonstrate coordinated highlighting. The left column contains list items, while the right column shows a CartoDB basemap centered on Syria. Hovering over a list item triggers the map to fly to a corresponding geographic location, such as zooming to a specific point near Crete. The code uses Leaflet’s `flyTo` method and the map’s tile layer from CartoDB’s Voyager style, with mouse events on the list elements controlling the map’s view.

AI-generated description

A bare minimum HTML page demonstrating use of CSS and JavaScript.

See also React Starter.

MIT Licensed

Similar vizzes