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

Gesture overlay and handling #157

Open
tarmooo opened this issue May 16, 2023 · 3 comments
Open

Gesture overlay and handling #157

tarmooo opened this issue May 16, 2023 · 3 comments
Labels
enhancement New feature or request

Comments

@tarmooo
Copy link
Contributor

tarmooo commented May 16, 2023

Hey! Any way to add custom gesture handling and on zoom to display something like this:
image

Found one leaflet example, wondered if it would be useful to port some way? https://github.com/elmarquis/Leaflet.GestureHandling

@mmomtchev
Copy link
Owner

You will have to implement it yourself - Openlayers / rlayers have the tools to do so - but do not have ready to use classes. Disable all the default interactions on the map and define your own interactions - you can check the constrained view example and the add/draw examples.

@tarmooo
Copy link
Contributor Author

tarmooo commented May 16, 2023

Yeap, figured. Already implementing - seems like it could be nice addition and perhaps if i finish my one i could send you a draft so that it could be added here?

@mmomtchev
Copy link
Owner

There are two parts to such component - redefining the zoom interaction - which is already possible - and implementing a beautiful text effect to display the message - which is currently missing.
A component that does nothing except to redefine the zoom interaction won't be very useful - since you will still have to disable all the default interactions to include it. Displaying the message is the real deal. I will gladly accept a PR for this.

@mmomtchev mmomtchev added the enhancement New feature or request label May 16, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants