Skip to content

Commit 6f4afd3

Browse files
anglarettwillum070
andauthored
Add terradraw sample (#511)
* Add terradraw sample * Update terra-draw to latest and remove package-lock.json * Fix build issues by updating tsconfig and adding types * Add test script to package.json * Adds region tags to index.html Adds region tags * Adds region tags to index.ts * Adds region tags to style.css --------- Co-authored-by: William French <[email protected]>
1 parent 6ebade7 commit 6f4afd3

25 files changed

+738
-0
lines changed
Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
# Basic Terra Draw with Google Maps API Sample
2+
3+
This sample demonstrates a basic implementation of Terra Draw with the Google Maps JavaScript API. It includes various drawing modes such as Point, LineString, Polygon, Rectangle, Circle, and Freehand.
4+
5+
![Roadmap View](./screenshots/roadmap-draw.png)
6+
![Satellite View](./screenshots/satellite-draw.png)
7+
8+
# Google Maps JavaScript Sample
9+
10+
This sample is generated from @googlemaps/js-samples located at
11+
https://github.com/googlemaps-samples/js-api-samples.
12+
13+
## Setup
14+
15+
### Before starting run:
16+
17+
`$npm i`
18+
19+
### Run an example on a local web server
20+
21+
First `cd` to the folder for the sample to run, then:
22+
23+
`$npm start`
24+
25+
### Build an individual example
26+
27+
From `samples/`:
28+
29+
`$npm run build --workspace=sample-name/`
30+
31+
### Build all of the examples.
32+
33+
From `samples/`:
34+
`$npm run build-all`
35+
36+
## Feedback
37+
38+
For feedback related to this sample, please open a new issue on
39+
[GitHub](https://github.com/googlemaps-samples/js-api-samples/issues).
40+
Lines changed: 1 addition & 0 deletions
Loading
Lines changed: 1 addition & 0 deletions
Loading
Lines changed: 1 addition & 0 deletions
Loading
Lines changed: 1 addition & 0 deletions
Loading
Lines changed: 1 addition & 0 deletions
Loading
1.27 KB
Loading
Lines changed: 1 addition & 0 deletions
Loading
Lines changed: 1 addition & 0 deletions
Loading
1.95 KB
Loading

0 commit comments

Comments
 (0)