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

Zoom messes with map boundaries? #4071

Closed
Rc85 opened this issue Jan 18, 2022 · 1 comment
Closed

Zoom messes with map boundaries? #4071

Rc85 opened this issue Jan 18, 2022 · 1 comment
Labels
bug Something isn't working

Comments

@Rc85
Copy link

Rc85 commented Jan 18, 2022

Bug report

Summary

Not sure if this is intended but it seems like the coordinates supplied to setMapBoundaries is setting the size of the view port rather than the how far north/south/west/east your view port can go.

Screenshot_20220118-122204_MT Drivers

Notice the boundary shown by the arrow and notice where Pitt Meadows is.

Screenshot_20220118-122242_MT Drivers

The red arrow here is the most I can scroll to, which is not the boundary that I have set. It's way far left than the one shown in the first picture. Notice where Pitt Meadows is in this picture. I should be able to scroll to the right more to see Golden Ears Provincial Park.

Environment info

react-native info output:

npmPackages:
@react-native-community/cli: Not Found
react: 16.13.1 => 16.13.1
react-native: ^0.66.1 => 0.66.1
react-native-windows: Not Found
npmGlobalPackages:
react-native: Not Found
"react-native-maps": "^0.27.1",

# paste your react, react-native, react-native-maps versions here

Steps to reproduce

  1. Set map boundaries
  2. Scroll map to edge of any boundary.
  3. Zoom in.

Describe what you expected to happen:

You should always be able to reach the specified boundary no matter how zoomed in you are.

Describe what you actually happens:

You cannot scroll to the specified boundaries if you zoom in past a point.

Reproducible sample code

@Rc85 Rc85 added the bug Something isn't working label Jan 18, 2022
@monholm
Copy link
Collaborator

monholm commented Mar 14, 2022

@Rc85 I'm going to close this for now, as I'm gonna have to have you test this on the latest version of react-native-maps and also provide a minimal reproducible example. Granted, the issue might still persist, but you are running a 2 year old version of the library.

Please feel free to open a new issue following the issue template if you find out that this is still an issue :)

@monholm monholm closed this as completed Mar 14, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants