Skip to content

Marker.setIcon should not destroy and recreate the DOM object #561

@DennisSchiefer

Description

@DennisSchiefer

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.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions