diff --git a/map/client/mixins/globe/mixin.geojson-layers.js b/map/client/mixins/globe/mixin.geojson-layers.js index 0c33b0a4c..a8751f199 100644 --- a/map/client/mixins/globe/mixin.geojson-layers.js +++ b/map/client/mixins/globe/mixin.geojson-layers.js @@ -380,7 +380,7 @@ export const geojsonLayers = { this.geojsonCache = {} }, beforeUnmount () { - this.$events.off('time-current-time-changed', this.onCurrentTimeChangedHeatmapLayers) + this.$events.off('time-current-time-changed', this.onCurrentTimeChangedGeoJsonLayers) this.$engineEvents.off('layer-shown', this.onLayerShownGeoJsonLayers) this.$engineEvents.off('layer-removed', this.onLayerRemovedGeoJsonLayers) diff --git a/map/client/mixins/map/mixin.geojson-layers.js b/map/client/mixins/map/mixin.geojson-layers.js index b5e7b7448..6e7c6b9ad 100644 --- a/map/client/mixins/map/mixin.geojson-layers.js +++ b/map/client/mixins/map/mixin.geojson-layers.js @@ -625,7 +625,7 @@ export const geojsonLayers = { this.geojsonCache = {} }, beforeUnmount () { - this.$events.off('time-current-time-changed', this.onCurrentTimeChangedHeatmapLayers) + this.$events.off('time-current-time-changed', this.onCurrentTimeChangedGeoJsonLayers) this.$engineEvents.off('selected-level-changed', this.onCurrentLevelChangedGeoJsonLayers) this.$engineEvents.off('zoomend', this.onMapZoomChangedGeoJsonLayers) this.$engineEvents.off('layer-shown', this.onLayerShownGeoJsonLayers)