Skip to main content
100%

Draw on Map

✓ Published1🌍 Public
SSriyaI
Last edited Jun 8, 2023
Created on May 19, 2023
Forked from D3 Starter

This interactive map allows users to draw and edit shapes directly on a geographic canvas, using the Leaflet mapping library and its Leaflet.draw plugin. The example demonstrates how to set up a drawing control with polygon draw enabled and a feature group for managing created shapes. A Mapbox tile layer provides the base map, and the map listens for the `draw:created` event to add newly drawn polygons to the feature group. The visualization also includes sample data files with city names and coordinates, though the current map focuses on the drawing functionality.

AI-generated description

A demonstration of how to start using D3 version 6.

MIT Licensed

Similar vizzes