An open API service indexing awesome lists of open source software.

https://github.com/konishon/random-map-shape-generator

A web app that randomly generates shapes (points, lines, polygons) on a map using
https://github.com/konishon/random-map-shape-generator

Last synced: 3 months ago
JSON representation

A web app that randomly generates shapes (points, lines, polygons) on a map using

Awesome Lists containing this project

README

        

# Random Map Shape Generator

A web app that randomly generates shapes (points, lines, polygons) on a map using [Leaflet.js](https://leafletjs.com/). Features layer switching, search, and shape downloads in ZIP format.

> You can use the tool on https://konishon.github.io/random-map-shape-generator/

![share-preview](https://github.com/user-attachments/assets/6d7d492b-5e18-4e69-aa2c-b348818e7ffa)

## Features

- 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

## Installation

1. Clone the repo:
```bash
git clone https://github.com/konishon/random-map-shape-generator.git
```
2. Open `index.html` in a browser (no server needed).

## Project Structure

```bash
.
├── index.html # Main HTML file
├── css/styles.css # Custom styles
├── js/script.js # Main JS logic
```

## Dependencies

- Leaflet.js
- Leaflet Control Geocoder
- JSZip, FileSaver.js

## License

MIT License