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!
- Basic data style
- Adding a unique identifier id
- By () map.getOverlays obtain all the map marker points, circulating it. Re-use unique identification id added earlier to delete this point.