目录

How can I resolve unexpected behavior caused by duplicate marker IDs in the map component?

Symptom

Markers of the map component are uniquely identified by their IDs. When multiple markers are assigned the same ID, all markers are still rendered on the map, but some operations trigger unexpected behavior:

Solution

During development, ensure that each marker is assigned a unique ID to maintain operation accuracy. It is recommended that auto-incrementing integers be used as IDs.