-
Notifications
You must be signed in to change notification settings - Fork 817
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
Multiple Circles are not removed, though correctly created #650
Comments
I've tried to reproduce the situation based on a clone of your example Plunker with no luck. Check it here: http://plnkr.co/edit/XTiZKF?p=preview. I get these errors:
|
Right now, I don't know how to make a PR from a fork on my account. I'll be attaching the two (IMHO) required modifications for this issue to be solved:
Haven't had the change to make any test. Hope it helps. |
@cronosxfiles thanks for the report. Bugfix will be in the next release |
I'm so grateful @SebastianM! Thanks a lot! Love this component as it has saved me lots of work at my job. |
@cronosxfiles Thank you for the kind words! |
Issue description
I have several circles on the map related to a list of search results. With every new search, I pretend to remove all circles and draw new ones. But all created circles from all searches remain on the map.
Steps to reproduce and a minimal demo of the problem
On the template, I have:
and, on the component/service class:
Of course, I use different classes that implement the marker/circle interfaces and provide all the required values.
Everything works OK with markers. You may add as many as you wish and then remove them with a call to
cleanUpMarkers()
. But a call tocleanUpCircles()
doesn't have the expected result. The circles remain painted on the map.Not sure if I'm doing something wrong or if it's an issue.
angular2 & angular2-google-maps version
The text was updated successfully, but these errors were encountered: