Skip to content

Commit df7eda7

Browse files
committed
fix: map-ready event could not be handled by the mixin.activity (close #1149)
1 parent 5ad7327 commit df7eda7

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

map/client/mixins/mixin.activity.js

+3-2
Original file line numberDiff line numberDiff line change
@@ -355,11 +355,12 @@ export const activity = {
355355
// Take care that if we only use the default options the specific options will be undefined
356356
this.activityOptions.engine = _.defaultsDeep(_.get(this.activityOptions, 'engine', {}), defaultOptions)
357357
}
358-
},
359-
mounted () {
358+
// Listen to map events
360359
this.$engineEvents.on('map-ready', this.onEngineReady)
361360
this.$engineEvents.on('globe-ready', this.onEngineReady)
362361
this.$engineEvents.on('layer-added', this.configureLayerActions)
362+
},
363+
mounted () {
363364
// Target online/offline service depending on status
364365
this.$events.on('navigator-disconnected', this.resetCatalogServiceEventsListeners)
365366
this.$events.on('navigator-reconnected', this.resetCatalogServiceEventsListeners)

0 commit comments

Comments
 (0)