Matt-Jensen / ember-cli-g-maps

Deprecated Google Maps Addon
http://matt-jensen.github.io/ember-cli-g-maps
MIT License
59 stars 31 forks source link

Advice on Travel Route #94

Closed Peter-Barrett closed 7 years ago

Peter-Barrett commented 7 years ago

Hey,

Could you point me in the right way regards using travel route or add route with ember-cli-g-maps? The example points to the Gmap version and I'm not too sure how to link them up.

Thanks, Peter

Matt-Jensen commented 7 years ago

Travel Routes or Directions Services are not supported by the project. However it is possible to roll your own support by extending the g-maps component and then implementing Gmaps Travel Route.

Alternatively, if your feeling more adventurous, you could pull the /remove-gmaps branch and create a child component that implements: https://developers.google.com/maps/documentation/javascript/examples/directions-simple and consumes the g-map component like so:

{{#g-map as |map|}}
   {{g-map-directions map}}
{{/g-map}}

I'd be happy to support you building that child component, should you decide to make it open source.

Peter-Barrett commented 7 years ago

Thanks for the quick response. I'll probably go with extending the component, thanks for the help!