Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Draw on Map

Public visualization

Viewing a saved revision (read-only)

bb99eb39b78d439b960414777e159081

Draw on Map

0 stars1🌍 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.