Disclaimer at application load issue with map
Hi:
We are trying to implement a disclaimer view at application start-up. The approach is to situate it in the modal region and to ensure both the modal region (ModalViewContainerView) and the disclaimer view are active when the SiteInitializedEvent is invoked. The view comes up fine and the workflow associated with it works ok too when the user wishes to exit the disclaimer view.
But there are inconsistencies in how the map is rendered. In Firefox the map seems to fill the map region most of the time. In Chrome, the result is often with the map situated in the upper left, so not fully rendered in the map region. Tried a couple of different things once the workflow completes. The view is destroyed (DestroyView) but also used CloseModalRegion and MapResize. At startup tried to capture the MapLoadedEvent to invoke the disclaimer then. No luck. We are using the HTML5 v2.3.2. Suggestions appreciated.
Ralph
-
Resolved. Upgraded to v2.4. Capturing the MapLoadedEvent in the Index.html. Then activating Disclaimer view. Removed any references to modal container in css also. Even if a map service is broken, others load and the Disclaimer appears without issue.
Thanks to everyone who gave this some thought.
Ralph
0 -
Hi Ralph,
I didn't find the MapLoadedEvent in the Index.html .I want to display a disclaimer window with an "Accept" button on which the user must click befor accessing the map.
I would appreciate your help
B.
0 -
Hi Badradine,
I'm trying to do something similar, did you ever resolve this?
Thank you,
Stephanie0
Bitte melden Sie sich an, um einen Kommentar zu hinterlassen.
Kommentare
3 Kommentare