@abi-software/mapintegratedvuer 1.3.4-beta.4 → 1.3.4-beta.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@abi-software/mapintegratedvuer",
3
- "version": "1.3.4-beta.4",
3
+ "version": "1.3.4-beta.5",
4
4
  "license": "Apache-2.0",
5
5
  "scripts": {
6
6
  "serve": "vite --host --force",
package/src/App.vue CHANGED
@@ -41,7 +41,8 @@
41
41
  :useHelpModeDialog="true"
42
42
  :connectivityInfoSidebar="true"
43
43
  @updateShareLinkRequested="updateUUID"
44
- @isReady="mapIsReady"
44
+ @isReady="viewerIsReady"
45
+ @isLoaded="mapIsLoaded"
45
46
  />
46
47
  </div>
47
48
  </div>
@@ -167,9 +168,12 @@ export default {
167
168
  setSearch: function() {
168
169
  this.$refs.map.openSearch([], "10.26275/1uno-tynt");
169
170
  },
170
- mapIsReady: function() {
171
- console.log("map is ready")
172
- this.changeViewingMode('Annotation')
171
+ mapIsLoaded: function() {
172
+ console.log("map is loaded")
173
+ // this.changeViewingMode('Annotation')
174
+ },
175
+ viewerIsReady: function() {
176
+ console.log("viewer is ready")
173
177
  },
174
178
  parseQuery: function () {
175
179
  this.$router.isReady().then(() => {
@@ -266,6 +266,11 @@ export default {
266
266
  */
267
267
  flowMounted: function () {
268
268
  this._flowMounted = true;
269
+ /**
270
+ * This event emit when the component is mounted.
271
+ */
272
+ this.$emit("isReady");
273
+
269
274
  // GA Tagging
270
275
  // Page view tracking for maps' buttons click on portal
271
276
  // category: AC | FC | WholeBody
@@ -326,9 +331,9 @@ export default {
326
331
  }
327
332
  EventBus.on('mapReady', () => {
328
333
  /**
329
- * This event emit when the component is mounted and map is ready.
334
+ * This event emit when the map is loaded.
330
335
  */
331
- if (this._flowMounted) this.$emit("isReady");
336
+ if (this._flowMounted) this.$emit("isLoaded");
332
337
  });
333
338
  this.isReady = true;
334
339
  this.settingsStore.updateUseHelpModeDialog(this.useHelpModeDialog);