ghettovoice / vuelayers

Web map Vue components with the power of OpenLayers
https://vuelayers.github.io/
MIT License
681 stars 230 forks source link

How to detect drag on vl-map component (pointerdrag) #423

Closed gcothiasfaure closed 3 years ago

gcothiasfaure commented 3 years ago

Hello @ghettovoice, thank you for this awesome and powerful package.

In order to change cursor style on drag, I am trying to detect drag on the vl-map component with pointerdrag event describe in vl-map component documentation (https://vuelayers.github.io/#/docs/component/map?id=events).

I don't know if I am missing something but I can't detect pointerdrag event on vl-map whereas I can detect all of the other vl-map events (pointermove, moveend etc...).

This is how I am trying to do this : https://jsfiddle.net/4j12sL9h/

Am I doing something wrong or the pointerdrag event on vl-map component doesn't work ?

Thank you very much,

Gaspard

ghettovoice commented 3 years ago

Hello @GaspardCothiasFaure , I have found a bug with rx observable setup. I'm going to fix it. Thanks for report!

ghettovoice commented 3 years ago

done. upgrade pls