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

how do i delete some arrow on the map #102

Open
zhangyan2009 opened this issue Apr 20, 2020 · 1 comment
Open

how do i delete some arrow on the map #102

zhangyan2009 opened this issue Apr 20, 2020 · 1 comment

Comments

@zhangyan2009
Copy link

I use polylineDecorator to draw a lot of arrow on the line, if I want delete some arrow that I don't want to display on the map; I only want to delete some draw , it isn't all of arrow , I don't use clear() to clear, i need some draw on the map;
can i use what function() to move some arrow from the map
thanks

@miko866
Copy link

miko866 commented May 27, 2020

When you create a polyline with a decorator you have to add the leaflet id of the polyline to a decorator. Now you know which polyline have which decorator. Then you have to write custom draw:delete function where you have to check by leaflet id which decorator belongs to which object.

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