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

Applyting draggble for an already Existing layer #86

Closed
cubecleveland opened this issue Feb 10, 2022 · 2 comments
Closed

Applyting draggble for an already Existing layer #86

cubecleveland opened this issue Feb 10, 2022 · 2 comments

Comments

@cubecleveland
Copy link

I was referring to issue #54 where they suggested to reinitiate the object in case the Polyline already existed.
We have a Geojson layer that already have the features drawn and we want to apply the transform on them...

the aboe method works, how can we apply the draggable method on them as well ?

@w8r
Copy link
Owner

w8r commented Oct 16, 2024

I think it should work via setOptions({ transform: true })

@w8r
Copy link
Owner

w8r commented Oct 16, 2024

More precisely

path.transform = new L.Handler.PathTransform(path, options);
path.transform.enable();
path.transform.disable();

@w8r w8r closed this as completed Oct 16, 2024
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

2 participants