Pencil mode: click/tap points around the boundary. Each point is connected automatically. When you finish the boundary, click Close Zone to create the final polygon.
Click the map to start drawing
Polygon GeoJSON

Google Maps API key required

Replace YOUR_GOOGLE_MAPS_API_KEY in this HTML file with your Google Maps JavaScript API key.

Enable the Maps JavaScript API and Places API (New) for the Google Cloud project associated with the key.

const GOOGLE_MAPS_API_KEY = 'YOUR_GOOGLE_MAPS_API_KEY';