Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Custom Components / Support for Directions? #66

Open
ShaneOH opened this issue Apr 1, 2023 · 4 comments
Open

Custom Components / Support for Directions? #66

ShaneOH opened this issue Apr 1, 2023 · 4 comments
Assignees
Labels
advise or question Seeking for advise or question

Comments

@ShaneOH
Copy link

ShaneOH commented Apr 1, 2023

Hello, is it possible to make DirectionsService and DirectionsRenderer work with this library? It seems like the Vue 2 version had support for adding custom components.

Is similar functionality available for this? A simple example to calculate the directions between two markers on a map here would be fantastically helpful.

@NathanAP
Copy link
Owner

Hello! I'm so sorry for the late response ):
My life had some changes lately, so I had stuff to resolve.

Anyway, I believe there is some of functionality that might not be available comparing to the very first version because Fawmi also didn't implemented it. I'll look into it :)

@NathanAP NathanAP self-assigned this Apr 10, 2023
@NathanAP NathanAP added the advise or question Seeking for advise or question label Apr 10, 2023
@jeffbruchado
Copy link

Just leaving a comment here to follow the discussion, because I'm migrating an application from Vue 2 to Vue 3 and I'm going to need this functionality to display directions on maps

@ShaneOH
Copy link
Author

ShaneOH commented Apr 18, 2023

@jeffbruchado I ended up getting this working (still using the fawmi package) and it was pretty straightforward

this.directionsService = new google.maps.DirectionsService();
...
this.directionsDisplay = new google.maps.DirectionsRenderer();
this.directionsDisplay.setMap(this.$refs.map.$mapObject);

etc.

If you run into any issues you can let me know and I can try to help

@faris-isa
Copy link

hello. I have no idea how to insert this code. since from what I know is you didn't need to import any google variable. so how to implement this direction services

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
advise or question Seeking for advise or question
Projects
None yet
Development

No branches or pull requests

4 participants