MCPcopy Create free account
hub / github.com/DHTMLX/scheduler / addEventMarker

Method addEventMarker

codebase/dhtmlxscheduler.es.js:5125–5130  ·  view source on GitHub ↗
(i)

Source from the content-addressed store, hash-verified

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--);

Callers

nothing calls this directly

Calls 1

map_info_contentMethod · 0.65

Tested by

no test coverage detected