Draw and edit polygon in Google Map with the import / export functionality
View
Edit
Coordinates
input/coordinates.json
contains the coordinates that will be rendered. It must follow the format specified in theinput/coordinates.json.template
file.env.json
contains the Google API Key that is required to show the map (Google doesn't allow anymore to use the API without a key)
-
Install dev dependencies:
yarn install
-
Create necessary
.env.json
file:
yarn env
(oryarn env-win
if you are on windows) -
Add your Google Maps API Key to
.env.json
:
(https://developers.google.com/maps/documentation/javascript/get-api-key) -
Create sample
coordinates.json
file:
yarn sample
(oryarn sample-win
if you are on windows)
or
Upload thecoordinates.json
file during runtime -
Browse/view index.html via some http(s) server
(e.g.yarn install http-server && http-server
)