Android: mapView.zoom does not change zoom
See original GitHub issueIn my app, I want the map to zoom in to a default value whenever a marker is pressed. I referenced this issue and found that doing this.mapView.zoom = 15
within the onMarkerEvent
works on iOS but not on Android. Is there another way to do this?
Also, I think it’s worth noting that changing the map’s center with this.mapView.latitude = ?
and this.mapView.longitude = ?
work on both Android and iOS.
Issue Analytics
- State:
- Created 6 years ago
- Comments:9
Top Results From Across the Web
Android GoogleMaps: Zoom in / out animation not working
It will move automatically and then slow down. But zoom in/out animation is not working at all. Tried to set these parameters to...
Read more >Camera and view | Maps SDK for Android - Google Developers
At any zoom level, you can pan the map, or change its perspective with very little latency thanks to the smaller footprint of...
Read more >How to keep graphics not moving when map zoom or pan
2. Once the user stops panning the map, you would want to use the screen location of your pushpin and convert that to...
Read more >Today I learned a handy trick to zoom in and out of Google Maps
Google Maps has a nifty little shortcut that lets you adjust zoom with just one finger. Just double-tap the maps interface, and then...
Read more >Accessibility in Google Maps - Android
Change display size: To make items on your screen larger, tap Display size, and then set your preferred icon size. Zoom in the...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I was able to get this to work by removing the angular bindings and just directly setting latitude, longitude and zoom on the MapView object.
So I removed
from the following template:
and then instead of just setting the following component properties and let angular do the binding:
I added:
Thanks for taking to time to help try figuring it out @lin-brian-l
Can you post your code in your map.ts file?