Skip to content

Fix plugin initialization.#597

Merged
na9da merged 3 commits intomainfrom
fix-plugin-init
Jun 30, 2022
Merged

Fix plugin initialization.#597
na9da merged 3 commits intomainfrom
fix-plugin-init

Conversation

@na9da
Copy link
Contributor

@na9da na9da commented Jun 15, 2022

Plugins must be initialized before restoring app state from share data as it might reference
plugin components and catalog items.

Depends on TerriaJS/terriajs#6342

Test me

  • Open http://ci.terria.io/main/

  • Check the map settings, it'll be in 3d smooth

  • Switch to 3d terrain

  • Now reload the page and check map settings again. Correct behavior is the switch to 3d terrain must persist. But now the settings is incorrectly set to 3d smooth.

  • Now run an instance from this branch fix-plugin-init

  • The above incorrect behavior should be fixed

  • Next, try opening the sample plugin from the right hand map menu (Cube icon)

  • Verify it opens correctly without errors

@na9da na9da force-pushed the fix-plugin-init branch 2 times, most recently from 0cb8973 to c04a9eb Compare June 15, 2022 03:17
Plugins must be initialized before restoring app state from share data as it might reference
plugin components and catalog items.
@na9da
Copy link
Contributor Author

na9da commented Jun 28, 2022

Thanks @mwu2018 - Will merge after a new release of terriajs.

@na9da na9da merged commit 3cc4354 into main Jun 30, 2022
@na9da na9da deleted the fix-plugin-init branch June 30, 2022 05:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants