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

Please add a option to control the behavior of the map moving out of boundaries #2236

Open
IceSakuraAzure opened this issue Mar 22, 2024 · 0 comments

Comments

@IceSakuraAzure
Copy link

maptalks's version and what browser you use?
1.0.0-rc.33 Egde/122.0.2365.92

Issue description
I'm using "identity" maps to create the game map, and I've set "maxExtent" to limit the boundaries of the map. However, when I move out of the boundaries, it still reveals parts of the map that are outside the boundaries. I would like to disable movement out of the boundaries, not the rebound that is shown now.
In fact, in the leaflet map, they use a parameter "maxBoundsViscosity" to control the behavior of moving out of boundaries, I think this can be used as a reference.

Please provide a reproduction URL (on any jsfiddle like site)

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

No branches or pull requests

1 participant