Contexts have unexpected behaviour when a Map plugin uses mapType equal to cesium #8493
Closed
1 task done
Labels
3D
All issues related to the 3D rendering in CesiumJs
AppContext
bug
Good first issue
Internal
Priority: High
Description
Currently it is possible to configure a Map plugin inside a context using a cesium map type, this will work for the map but other plugins are not aware of this configuration.
For example this context uses the cesium map type, the map viewer is correctly using the 3D view but other plugins are not working as expected, eg. TOC shows 3D tile layer disable with the info sign icon. This is related to the fact that map type is managed with the redux state and when we using the Map plugin cfg to define the mapType this is referred to the map only:
If we look at the code a configuration like this will override the one from the state
because the Map plugin is using the custom connect from the utils file introduced in this PR to allow to override the shouldLoadFont via localConfig.json.
Probably we should add an external field from the plugin config in the context steps to define the map type to use.
How to reproduce
Expected Result
Current Result
3D tiles menu items should be displayed without info icon because the mapType in the state is still openlayers
Not browser related
Browser info
(use this site: https://www.whatsmybrowser.org/ for non expert users)Other useful information
This issue is probably connected to also #8334
The text was updated successfully, but these errors were encountered: