Skip to content

Commit

Permalink
Update Readme
Browse files Browse the repository at this point in the history
  • Loading branch information
asennikov committed May 16, 2016
1 parent c55ad16 commit 1fd6cb3
Showing 1 changed file with 20 additions and 1 deletion.
21 changes: 20 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -317,14 +317,33 @@ Waypoints could be added using
{{/g-map}}
```

## Map with Polylines

You can optionally set following custom polyline options as attributes:
- `strokeColor`
- `strokeWeight`
- `strokeOpacity`
- `zIndex`

```handlebars
{{#g-map lat=37.7833 lng=-122.4167 zoom=12 as |context|}}
{{#g-map-polyline context strokeColor="green" strokeWeight="10" strokeOpacity="0.3" as |coordinateContext|}}
{{g-map-polyline-coordinate coordinateContext lat=37.7833 lng=-122.4667}}
{{g-map-polyline-coordinate coordinateContext lat=37.7933 lng=-122.4567}}
{{g-map-polyline-coordinate coordinateContext lat=37.7933 lng=-122.4667}}
{{/g-map-polyline}}
{{/g-map}}
```

## Demo

http://asennikov.github.io/ember-g-map/

# Planned Features

- Polylines & Polygons
- Polygons
- Google Maps events
- Better DEMO app

## Running

Expand Down

0 comments on commit 1fd6cb3

Please sign in to comment.