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

RDragZoom does not extend RDragBox and onChange appears not to work #254

Open
deirdrehall opened this issue May 7, 2024 · 0 comments
Open

Comments

@deirdrehall
Copy link

In the OL 9 standard, DragZoom extends DragBox and should give access to the same functions (onBoxStart / onBoxEnd / etc)

In addition, the onChange defined on RDragZoom does not ever seem to activate:

        <RInteraction.RDragZoom
          condition={alwaysCondition}
          onChange={(e) => {
            console.log("RDragZoom onChange fired");
          }}
        />

The RDragZoom is properly defining a box and zooming to that box, but nothing is ever logged to the console.

I have other map functionality which needs to be disabled when RDragZoom is active, and I have not been able to figure out a way to detect when it is active.

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