Closed aashish24 closed 10 years ago
That's because the map.removeLayer() method never removes the removed layer from m_layers. The query goes through all layers in m_layers because I assumed they would be removed from that list.
Ah..can you push a fix? I can review. I thought about something like this.
Looks good! Approved. Thanks for pushing this fix.
That's because the map.removeLayer() method never removes the removed layer from m_layers. The query goes through all layers in m_layers because I assumed they would be removed from that list.