Skip to main content
100%

adding geojson to leaflet map

✓ Published0🌍 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

MIT Licensed

Similar vizzes