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

fix: corrected project/unproject when tilting/rotating a google vector map #81

Merged

Conversation

anderswi
Copy link
Contributor

@anderswi anderswi commented Sep 6, 2023

Fixes #76, by using the built in fromContainerPixelToLatLng / fromLatLngToContainerPixel.

@@ -334,6 +334,7 @@ const example = {
center: { lat: this.lat, lng: this.lng },
zoom: this.zoom,
clickableIcons: false,
mapId: process.env.GOOGLE_MAP_ID,
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You can load vector maps in Google Maps by providing your own map id... If left undefined it will default to the standard map.

@JamesLMilner
Copy link
Owner

Thanks! This seems to be working from my testing. I'll merge it in.

Screenshot_20230917_010805-1

@JamesLMilner JamesLMilner merged commit b0a69c5 into JamesLMilner:main Sep 17, 2023
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Cannot select points in Google Maps Adapter when view is rotated/tilted
2 participants