Skip to main content
100%

Leaflet.js × D3.js - location data fix on GUI

✓ Published0🌍 Public
HHirosaji
Last edited Feb 19, 2020
Created on Jan 24, 2019

This example presents a drag-and-drop system for fixing location data on a Leaflet map, built for the "Houbunsha" map project. Red circular markers, rendered via the Leaflet.js API, show real-life locations from a JSON file. Users can drag these markers to correct their positions, and the updated coordinates are saved back to the data file via an Export button, which uses a D3.js selection to create a downloadable link. The code integrates Leaflet's map and layer-group objects with D3.js's data-loading and DOM-selection functions to provide an efficient editing workflow.

AI-generated description

▶︎ What's this?: Drag & Fix Location Data System


▷ Why made this?: I making location data for "Houbunsha" map. So I developed this system for making data efficient.

▷ What is "Houbunsha" map?: WebGIS for visit the real-life locations on "Houbunsha" works - https://hirosaji.github.io/hobunsha-map/public/

▷ How to use?: By dragging, you can fix positions of circles showing real-life locations. With 'Export' button, you can download the fixed data.


[Gist] https://gist.github.com/Hirosaji/7974adc4cb34dd4521635d822e82f70c


Built with blockbuilder.org

mit Licensed

Similar vizzes