A web app that randomly generates shapes (points, lines, polygons) on a map using Leaflet.js. Features layer switching, search, and shape downloads in ZIP format.
You can use the tool on https://konishon.github.io/random-map-shape-generator/
- Random shape generation: points, lines, polygons
- Layer switcher (Street, Light, Dark)
- Search locations with Leaflet Geocoder
- Download shapes as ZIP
- Clear all shapes
- Right-click map context menu
- Clone the repo:
git clone https://github.com/konishon/random-map-shape-generator.git
- Open
index.html
in a browser (no server needed).
.
├── index.html # Main HTML file
├── css/styles.css # Custom styles
├── js/script.js # Main JS logic
- Leaflet.js
- Leaflet Control Geocoder
- JSZip, FileSaver.js
MIT License