Hi,
I'm experiencing weird behaviour when I use elevation profile inside widget controller.
I have custom widget that utilize web fullscreen API. Without opening the elevation profile, the widget with fullscreen API work correctly. However, upon the elevation profile widget, my custom widget just broke.
I've notice that, elevation profile widget inside widget controller, remove the active map selection if I activate fullscreen API. I did not notice this if the elevation profile widget is not part of the widget controller.
This behaviour cause my custom widget to crash and eventually the whole app
Is it a bug?
this the link of the EXB for sample of fullscreen API behaviour against elevation profile inside widget controller. Debug Fullscreen.zip
Step to reproduce the behaviour:
1) Click any point in the map/table
2) Click on the button in the custom widget.
3) You should be able to see the custom widget in fullscreen
4) Exit fullscreen (click esc)
5) Selection still retains
6) Open elevation profile widget
7) Repeat (2), (3), (4)
Now you will see the selection has been removed.
Tested in EXB 1.12 and 1.11
I extracted out the elevation profile widget. Apparently, inside componentWillUnmount it will clear any selected features on the map.
In my app, I don't want this to happen because it's really selected features dependent. Commented it out and all is good.