CloudMade/Leaflet — Issue #561: Marker.SetIcon should not destroy and recreate the DOM object
Author: DennisSchiefer
Created: 2012-03-06 09:24:14+00:00
State: open

Use Case:
Change the icon of a maker while it is being dragged.

Problem:
When you change the icon of a marker with Marker.SetIcon in the dragstart event of the marker, the DOM object of the marker is destroyed and recreated. The newly created DOM object has no memory that it was about to be dragged - so dragging does not work.