lolochristen / OpenLayers.Blazor

An Map component for Blazor based on OpenLayers with support for swisstopo swiss maps.
MIT License
42 stars 15 forks source link

Feature - Set Interaction on map #48

Closed msdevcode closed 7 months ago

msdevcode commented 8 months ago

Good morning,

is it possible to set the interaction of the map on mobile devices e.g. with two fingers or on desktop with ctrl + mouse or keyboard arrows?

It would be great to not change the map when the user is scrolling the view.

If the feature is alreay there, maybe you can add an example to the readme.

Thank you in advance.

Best regards

OskarZyg commented 8 months ago

related: mobile users are able to rotate the map. in my experience, they usually do this unintentionally and get confused. would love if i had an option to restrict / disable this

lolochristen commented 8 months ago

Controlling the interactions is not yet possible. I made a proposal in PR #49. With the change, shift + mouse will do the same as two fingers. Also, all interactions can be disabled now. I will release it after some tests/feedback. Hope this helps. l

msdevcode commented 7 months ago

Disable all interactions is working fine for me. Looking forward to controll the interactions of the map.

Thanks alot and keep up the good work!