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

Snaping in interaction #172

Open
HAIGHGG opened this issue Jul 31, 2023 · 1 comment
Open

Snaping in interaction #172

HAIGHGG opened this issue Jul 31, 2023 · 1 comment
Labels
enhancement New feature or request

Comments

@HAIGHGG
Copy link

HAIGHGG commented Jul 31, 2023

Hello
How can i implement snapping in my rinteraction when drawing lines?
I can see its working when drawing polygons but i need snap linestring to linestring and linestring to point

best regards, and thank you for your work

@mmomtchev
Copy link
Owner

There is no component that supports it - you will have to create a new component, inherit from RDraw or RBaseInteraction and then create both an OpenLayers Draw and Snap elements: https://openlayers.org/en/latest/examples/snap.html

@mmomtchev mmomtchev added the enhancement New feature or request label Jul 31, 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