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

googlemaps latlng #187

Closed
Alidkhh opened this issue Aug 3, 2024 · 4 comments
Closed

googlemaps latlng #187

Alidkhh opened this issue Aug 3, 2024 · 4 comments
Labels
help wanted Extra attention is needed

Comments

@Alidkhh
Copy link

Alidkhh commented Aug 3, 2024

📚 What are you trying to do?

i use ScriptGoogleMaps component and i want to use LatLng object for set marker in google maps .
i tried to pass this object to options.center and query but its not working.
Am I using it wrong ?

🔍 What have you tried?

No response

ℹ️ Additional context

No response

@Alidkhh Alidkhh added the help wanted Extra attention is needed label Aug 3, 2024
@Ulrich-Mbouna
Copy link

Hello,

I'm also confused how to set query correctly in that component.

@Alidkhh
Copy link
Author

Alidkhh commented Aug 5, 2024

hi
i tried to use this component like this but its not working , am i using it wrong?
<ScriptGoogleMaps :query="{ lat: -34.397, lng: 150.644 }" :api-key="apiKey" :options="googleMapOptions" /> <ScriptGoogleMaps query="{ lat: -34.397, lng: 150.644 }" :api-key="apiKey" :options="googleMapOptions" />

@Ulrich-Mbouna
Copy link

Using object syntax didn't work. I use string for query (Town or quarter).

@harlan-zw
Copy link
Collaborator

harlan-zw commented Aug 22, 2024

Please refer to the new markers prop in this PR #191, should be stable as of 0.7.1.

Also the center prop will now properly take lat/long

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

3 participants