inocan-group / vue3-google-map

A set of composable components for easy use of Google Maps in your Vue 3 projects.
https://vue3-google-map.com
MIT License
272 stars 54 forks source link

how to use direciton function #114

Closed guhao1129 closed 1 year ago

guhao1129 commented 1 year ago

google map javascript api have direction,StreetView and Places functions, how can i use this function with this compants? thankyou

HusamElbashir commented 1 year ago

Hi @guhao1129

We don't have convenience apis for these functions. You might be able to hook them up yourself using some of the patterns here: https://github.com/inocan-group/vue3-google-map#advanced-usage

If you need to use another library for these features specifically you can load the Google Maps javascript API externally and pass a prop so as to not load the script twice. See this for an example: https://github.com/inocan-group/vue3-google-map/issues/99#issuecomment-1237395931