Skip to content

Commit

Permalink
Update README 0.5.2
Browse files Browse the repository at this point in the history
  • Loading branch information
explooosion committed Apr 21, 2018
1 parent 6fa924a commit ddfd845
Showing 1 changed file with 19 additions and 4 deletions.
23 changes: 19 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,12 @@

### Feature

- [CustomIcons](#CustomIcons)
- [Remove Direction](#RemoveDirection)
- [Custom Icons](#CustomIcons)
- [Show Panel Direction](#ShowPanelDirection)
- [Directions Renderer Options](#DirectionsRendererOptions)
- [Directions Service](#DirectionsService)
- [Custom Icons](#CustomIcons)

## Installation

Expand Down Expand Up @@ -141,6 +146,8 @@ The `DirectionsResult` object will emit when sending a directions request.

## Featured

<a id="RemoveDirection"></a>

#### Remove Direction

+ HTML
Expand All @@ -155,6 +162,8 @@ The `DirectionsResult` object will emit when sending a directions request.
this.show = false
```

<a id="ShowPanelDirection"></a>

#### Show Panel Direction

Use of the DirectionsRenderer object to display a directions [panel](https://developers.google.com/maps/documentation/javascript/examples/directions-panel?hl=zh-tw).
Expand Down Expand Up @@ -183,6 +192,8 @@ Or you could define a function using the panel:
}
```

<a id="DirectionsRendererOptions"></a>

#### Directions Renderer Options

This object defines the properties that can be set on a [DirectionsRenderer](https://developers.google.com/maps/documentation/javascript/reference#DirectionsRendererOptions) object.
Expand All @@ -206,6 +217,8 @@ This object defines the properties that can be set on a [DirectionsRenderer](htt
};
```

<a id="DirectionsService"></a>

#### Directions Service

You can calculate directions (using a variety of methods of transportation) by using the [DirectionsService](https://developers.google.com/maps/documentation/javascript/directions?hl=en-US) object.
Expand Down Expand Up @@ -235,7 +248,9 @@ You can calculate directions (using a variety of methods of transportation) by u
travelMode = 'TRANSIT';
```

#### <a id="CustomIcons">Custom Icons</a>
<a id="CustomIcons"></a>

#### Custom Icons

You can change the icons of origin and destination.

Expand All @@ -256,10 +271,10 @@ You can change the icons of origin and destination.

markerOpts = {
origin: {
icon: 'http://image.ibb.co/bZ3wLn/origin.png',
icon: 'your-icon-url',
},
destination: {
icon: 'https://image.ibb.co/cLwp5n/678111_map_marker_256.png',
icon: 'your-icon-url',
label: 'marker label',
opacity: 0.8,
// ... properties
Expand Down

0 comments on commit ddfd845

Please sign in to comment.