diff --git a/README.md b/README.md index 4d77926..0a953c3 100644 --- a/README.md +++ b/README.md @@ -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 @@ -141,6 +146,8 @@ The `DirectionsResult` object will emit when sending a directions request. ## Featured + + #### Remove Direction + HTML @@ -155,6 +162,8 @@ The `DirectionsResult` object will emit when sending a directions request. this.show = false ``` + + #### 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). @@ -183,6 +192,8 @@ Or you could define a function using the panel: } ``` + + #### 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. @@ -206,6 +217,8 @@ This object defines the properties that can be set on a [DirectionsRenderer](htt }; ``` + + #### 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. @@ -235,7 +248,9 @@ You can calculate directions (using a variety of methods of transportation) by u travelMode = 'TRANSIT'; ``` -#### Custom Icons + + +#### Custom Icons You can change the icons of origin and destination. @@ -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