Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

adding geojson to leaflet map

Public visualization

Viewing a saved revision (read-only)

eab639ef251b480cbd72c882a3cf6df5

adding geojson to leaflet map

0 stars0🌍 Public
SSam Hege
Last edited Feb 3, 2023
Created on Feb 2, 2023

This example demonstrates how to add multiple layers and an interactive marker to a Leaflet map. The map is initialized using the Leaflet JavaScript library and displays an OpenStreetMap tile layer alongside a Google satellite tile layer, both added to the map via the `tileLayer` and `addTo` functions. A marker is placed at the center coordinates (33.5846, -101.8456) with a popup bound to it. The data is rendered from the OpenStreetMap and Google tile servers, with the map view set using `.setView`.

AI-generated description

Leaflet loading practice