(i)
| 5062 | i.innerHTML = ""; |
| 5063 | } |
| 5064 | addEventMarker(i) { |
| 5065 | const t = L.icon({ iconUrl: "https://unpkg.com/leaflet@1.0.3/dist/images/marker-icon.png", iconSize: [25, 41], shadowSize: [30, 65], iconAnchor: [12, 41], shadowAnchor: [7, 65] }); |
| 5066 | let n = { minWidth: 180, maxWidth: this.settings.info_window_max_width }; |
| 5067 | const s = L.popup(n).setContent(this.scheduler.templates.map_info_content(i)), a = L.tooltip().setContent(i.text); |
| 5068 | let o = [i.lat, i.lng]; |
| 5069 | i.lat && i.lng || (o = [this.settings.error_position.lat, this.settings.error_position.lng]); |
| 5070 | const _ = { event: i, marker: L.marker(o, { icon: t }).bindPopup(s).bindTooltip(a).addTo(this.map) }; |
| 5071 | this._markers.push(_); |
| 5072 | } |
| 5073 | removeEventMarker(i) { |
| 5074 | for (let t = 0; t < this._markers.length; t++) |
| 5075 | i == this._markers[t].event.id && (this.map.removeLayer(this._markers[t].marker), this._markers.splice(t, 1), t--); |
nothing calls this directly
no test coverage detected