(event2)
| 13740 | this.scheduler = scheduler2; |
| 13741 | } |
| 13742 | onEventClick(event2) { |
| 13743 | if (this._markers && this._markers.length > 0) { |
| 13744 | for (let i = 0; i < this._markers.length; i++) { |
| 13745 | const popup = this._markers[i].marker.getPopup(); |
| 13746 | if (popup.isOpen()) { |
| 13747 | popup.remove(); |
| 13748 | } |
| 13749 | if (event2.id == this._markers[i].event.id) { |
| 13750 | this._markers[i].marker.togglePopup(); |
| 13751 | if (event2.lat && event2.lng) { |
| 13752 | this.setView(event2.lat, event2.lng, this.settings.zoom_after_resolve || this.settings.initial_zoom); |
| 13753 | } else { |
| 13754 | this.setView(this.settings.error_position.lat, this.settings.error_position.lng, this.settings.zoom_after_resolve || this.settings.initial_zoom); |
| 13755 | } |
| 13756 | } |
| 13757 | } |
| 13758 | } |
| 13759 | } |
| 13760 | initialize(container, options) { |
| 13761 | let scheduler2 = this.scheduler; |
| 13762 | mapboxgl.accessToken = options.accessToken; |
no test coverage detected