* Removes the marker with the specified ID. If this marker was in front, the `'changeFrontMarker'` event is emitted. If the marker was in the back, the `'changeBackMarker'` event is emitted. * @param {Number} markerId A number representing a marker
(markerId)
| 740 | * @param {Number} markerId A number representing a marker |
| 741 | **/ |
| 742 | removeMarker(markerId) { |
| 743 | var marker = this.$frontMarkers[markerId] || this.$backMarkers[markerId]; |
| 744 | if (!marker) |
| 745 | return; |
| 746 | |
| 747 | var markers = marker.inFront ? this.$frontMarkers : this.$backMarkers; |
| 748 | delete (markers[markerId]); |
| 749 | this._signal(marker.inFront ? "changeFrontMarker" : "changeBackMarker"); |
| 750 | } |
| 751 | |
| 752 | /** |
| 753 | * Returns an object containing all of the markers, either front or back. |
no outgoing calls
no test coverage detected