Baidu map Removes the specified marker point (vue)

Use api map.removeOverlay Baidu provided ()
before useful projects to Baidu map, clear very straightforward call map.clearOverlays () method on the line, but to delete a specific point on a little trouble, put here to share with you!

  1. Basic data style
    Here Insert Picture Description
  2. Adding a unique identifier id
    Here Insert Picture Description
  3. By () map.getOverlays obtain all the map marker points, circulating it. Re-use unique identification id added earlier to delete this point.
    Here Insert Picture Description
Released three original articles · won praise 6 · views 2191

Guess you like

Origin blog.csdn.net/yw1376394716/article/details/105189857