-
Notifications
You must be signed in to change notification settings - Fork 4.9k
-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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
Set zoom level #920
Comments
use longitudeDelta and latitudeDelta values to the region object to set the Zoom level.
|
+1 |
I use this code const { region } = this.state;
const newRegion = {
latitude: coordinates.latitude,
longitude: coordinates.longitude,
latitudeDelta: region.latitudeDelta - (region.latitudeDelta / 1.2),
longitudeDelta: region.longitudeDelta - (region.longitudeDelta / 1.2),
};
this.mapRef.animateToRegion(newRegion, 500); |
The deltas are zoomControls |
@alvelig I am using default zoom controller by zoomControlEnabled={true}. Can we change the position of this zoom controller? |
@shrikantkunte Hopefully in the future, #2563 will provide this. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
How to set zoom level for google map?
Help me!
The text was updated successfully, but these errors were encountered: