(i)
| 5123 | i.innerHTML = ""; |
| 5124 | } |
| 5125 | addEventMarker(i) { |
| 5126 | let t = [i.lng, i.lat]; |
| 5127 | i.lat && i.lng || (t = [this.settings.error_position.lng, this.settings.error_position.lat]); |
| 5128 | const n = new mapboxgl.Popup({ offset: 25, focusAfterOpen: !1 }).setMaxWidth(`${this.settings.info_window_max_width}px`).setHTML(this.scheduler.templates.map_info_content(i)), s = { event: i, marker: new mapboxgl.Marker().setLngLat(t).setPopup(n).addTo(this.map) }; |
| 5129 | this._markers.push(s); |
| 5130 | } |
| 5131 | removeEventMarker(i) { |
| 5132 | for (let t = 0; t < this._markers.length; t++) |
| 5133 | i == this._markers[t].event.id && (this._markers[t].marker.remove(), this._markers.splice(t, 1), t--); |
nothing calls this directly
no test coverage detected