Select to view content in your preferred language

Missing widgets and layout until browser window minimize / maximize

1559
5
12-14-2013 08:20 AM
by Anonymous User
Not applicable
Original User: AaronKreag

All,

While I have been using GIS for 15 years and have built web maps in the old ADF and Silverlight, I am BRAND new to Flex.  The other day I copied a functioning, albeit basic and dated legacy Flex web map and started "updating" it with more widgets, color, new data sets, etc by way of the main html file, config file and the widgets config files.  Its very much a work in progress.

The biggest issue I am dealing with at the moment is that when you go to the website, the window opens, you get my splash window (placeholder), click agree and are at the web map.  If you try a resize while the splash page is up it still doesn't fix anything.  You need to click agree to get the splash page to go away first.

For some reason, at that point there are missing widget windows, missing widget icons and the top ribbon is blank.  If you do a minimize / maximize on the browser window that usually solves the problem and the layout reloads correct and the icons and widgets all appears as expected.  I am not a developer by any stretch but if this sounds like something you have experienced or are familiar with, please do respond.  If email is preferred, gisdataguy at yahoo dot com.  I will also share the URL to the webmap but would rather not just post here for the world to see.  Thank you!

I attached two pictures, one is what the screen looks like when you first hit the site.  The second picture is AFTER you click agree on the splash and then do a minimize or maximize of the browser window.
0 Kudos
5 Replies
AnthonyGiles
Honored Contributor
Aaron,

Are you loading the splash page as a widget or are you using the <splashpage> Tag,

Can you post up your xml file

Regards

Anthony
0 Kudos
by Anonymous User
Not applicable
Original User: AaronKreag

As a follow up.  I was able to fix the problem.  I thought it was the splashpage widget and its place in the main config file but that did not make a difference.

For some reason it appears to be something related to the MAP tag, its sub tags, and/or the basemap mapswitcher widget.

I created a new flex web map using the new viewer/builder and then took that main config file syntax, copied and pasted the map tag data into the main config file and replaced the mapswitcher widget.  That is when the application fails to load properly.

I had to use a hybrid of the script from a previous version of the main config file and the new tools.  If I had to make a guess, I would say that there is something wrong with the addesribasemap true config in the new application.  According to the esri help, it says that all you need is to set that to true and you do not need to declare your basemaps, that it will do it automatically.  This is not true.  I had to declare all of the basemap layers REST end point, even though the addesribasemap is true.

I am sure this sounds like a bunch of non-sense so email me if you want to discuss or want a copy of the config.xml that I got to work.  Thanks.
0 Kudos
AnthonyGiles
Honored Contributor
Aaron,

From version 3.0 to add basemaps you use the addarcgisbasemaps tag not useesribasemap, see:

http://resources.arcgis.com/en/help/flex-viewer/concepts/index.html#/Map_content/01m30000005p000000/

Regards

Anthony
0 Kudos
by Anonymous User
Not applicable
Original User: AaronKreag

Anthony-

Hey there.  Good catch man.  You and Robert pinged at about the same time.  I went back and looked at all of the config files, through all of the different versions/iterations and they all say addesribasemaps.  My use of the word "use" was a result of my rushing.

In the help, correct me if I am wrong, it says if set to true and all you want is the esri online basemaps connected to the switcher, it should work. Right?  Mine was set to true but unless I added the six or so lines of text under basemap to point to all of the different REST endpoints, it would not work and the application would not load completely.
0 Kudos
AnthonyGiles
Honored Contributor
Correct, you should not need to add all the URLs to get the default basemaps.

Regards

Anthony
0 Kudos