Select to view content in your preferred language

Issues upgrading Flexviewer 3.1 (uncompiled)

8393
48
Jump to solution
12-18-2012 10:05 AM
by Anonymous User
Not applicable
Original User: btelliot

Hi All,

I've been upgrading our in-house web mapping application from flexviewer 3.0 to 3.1, and I've encountered a small problem.

The first time I load the Flexviewer application in the web browser, the User Interface doesn't load properly.  If I refresh using the F5 button, it loads properly.

Here is a screenshot of the issue:
First load:
[ATTACH=CONFIG]20039[/ATTACH]

After refresh (F5)
[ATTACH=CONFIG]20040[/ATTACH]

Any help on the matter would be appreciated.

Cheers,

Brett
0 Kudos
1 Solution

Accepted Solutions
BjornSvensson
Esri Regular Contributor
Just wanted to follow up and let you know that this has been fixed and will be part of the 3.2 release (see GitHub Issue #28 - popups in 3.1 causes problem on application startup).

FYI: if you want to see what other viewer code changes made it into 3.2, look at the closed and verified issues for 3.2:
https://github.com/Esri/arcgis-viewer-flex/issues?labels=verified&milestone=1&state=closed

View solution in original post

0 Kudos
48 Replies
by Anonymous User
Not applicable
Original User: hgonzago

Hi All,

I've been upgrading our in-house web mapping application from flexviewer 3.0 to 3.1, and I've encountered a small problem.

The first time I load the Flexviewer application in the web browser, the User Interface doesn't load properly.  If I refresh using the F5 button, it loads properly.

Here is a screenshot of the issue:
First load:
[ATTACH=CONFIG]20039[/ATTACH]

After refresh (F5)
[ATTACH=CONFIG]20040[/ATTACH]

Any help on the matter would be appreciated.

Cheers,

Brett


Easy enough and maybe you have already tried, but did you clear your browser cache before running this?
0 Kudos
by Anonymous User
Not applicable
Original User: btelliot

Hi Heather,

I normally open the web maps using Google Chrome's Incognito mode, which should not pull from a cache.

I just cleared my cache and tried with internet explorer this time, and I'm still having the same issue.

- B
0 Kudos
by Anonymous User
Not applicable
Original User: btelliot

I'll put a copy of the config.xml file here:

<?xml version="1.0" ?>
<!--
////////////////////////////////////////////////////////////////////////////////
//
// Read more about ArcGIS Viewer for Flex - http://links.esri.com/flexviewer
//
////////////////////////////////////////////////////////////////////////////////
-->
<configuration>
    <title>Environmental Consultants</title>
    <subtitle>Web Mapping Application - General Reference</subtitle>
    <logo>assets/images/TERA_White.png</logo>

    <style>
        <colors>0xFFFFFF,0x1B382B,0x101010,0x000000,0xF0F0F0</colors>
        <alpha>0.8</alpha>
    </style>
    <!-- replace the following url with your own geometryservice -->
    <geometryservice url="###censored###" />

    <!-- TERA's BING MAPS KEY BELOW -->
    <bing key="###censored###"/>
    <!-- <splashpage label="TERA Environmental Consultants" config="widgets/mySplash/SplashWidget.xml" url="widgets/mySplash/SplashWidget.swf"/>-->
    <!-- UI elements -->
    <widget left="10"  top="50"    config="widgets/Navigation/NavigationWidget.xml" url="widgets/Navigation/NavigationWidget.swf"/>
    <widget right="0" bottom="0" config="widgets/OverviewMap/OverviewMapWidget.xml" url="widgets/OverviewMap/OverviewMapWidget.swf"/>
    <widget right="20" top="55"    config="widgets/MapSwitcher/MapSwitcherWidget.xml" url="widgets/MapSwitcher/MapSwitcherWidget.swf"/>
    <widget left="0"   top="0"     config="widgets/HeaderController/HeaderControllerWidget.xml" url="widgets/HeaderController/HeaderControllerWidget.swf"/>
    <widget right="100" bottom="7" config="widgets/StaticImage/StaticImageWidget.xml" url="widgets/StaticImage/StaticImageWidget.swf"/>

    <map wraparound180="true" initialextent="-16141587 5585597 -8642197 10056857" fullextent="-16141587 5585597 -8642197 10056857" top="40" addarcgisbasemaps="false">


 <!-- Valid Scale Levels -->
   <lods>
<!--          <lod resolution="156543.033928" scale="591657527.591555"/> -->   <!-- Level 0 -->
<!--          <lod resolution="78271.5169639999" scale="295828763.795777"/>--> <!-- Level 1 -->
<!--          <lod resolution="39135.7584820001" scale="147914381.897889"/>--> <!-- Level 2 -->
         <lod resolution="19567.8792409999" scale="73957190.948944"/>  <!-- Level 3 -->
         <lod resolution="9783.93962049996" scale="36978595.474472"/>  <!-- Level 4 -->
         <lod resolution="4891.96981024998" scale="18489297.737236"/>  <!-- Level 5 -->
         <lod resolution="2445.98490512499" scale="9244648.868618"/>   <!-- Level 6 -->
          <lod resolution="1222.99245256249" scale="4622324.434309"/>   <!-- Level 7 -->
         <lod resolution="611.49622628138" scale="2311162.217155"/>    <!-- Level 8 -->
         <lod resolution="305.748113140558" scale="1155581.108577"/>   <!-- Level 9 -->
         <lod resolution="152.874056570411" scale="577790.554289"/>    <!-- Level 10 -->
          <lod resolution="76.4370282850732" scale="288895.277144"/>    <!-- Level 11 -->
         <lod resolution="38.2185141425366" scale="144447.638572"/>    <!-- Level 12 -->                                                                    
         <lod resolution="19.1092570712683" scale="72223.819286"/>     <!-- Level 13 -->
         <lod resolution="9.55462853563415" scale="36111.909643"/>     <!-- Level 14 -->
         <lod resolution="4.77731426794937" scale="18055.954822"/>     <!-- Level 15 -->
         <lod resolution="2.38865713397468" scale="9027.977411"/>      <!-- Level 16 -->
         <lod resolution="1.19432856685505" scale="4513.988705"/>      <!-- Level 17 -->
 <!--      <lod resolution="0.597164283559817" scale="2256.994353"/> -->    <!-- Level 18 -->
 <!--       <lod resolution="0.298582141647617" scale="1128.497176"/> -->    <!-- Level 19 -->

     </lods>
         <basemaps>
            <layer label="SPOT5+Base" type="tiled" visible="false"  alpha="1"
              icon="###censored###"
                    url="###censored###"/>
            <layer label="SPOT5 2011"  type="tiled" visible="false" alpha="1"
              icon="###censored###"
                    url="###censored###"/>
   <layer label="Terrain"    type="tiled" visible="true" alpha="1"
     icon="###censored###"
                    url="###censored###"/>
            <layer label="eTopo" type="tiled" visible="false" alpha="1"
              icon="###censored###"
              url="###censored###"/>
            <layer label="Bing Aerial    (Internal Use)" type="bing" style="aerialWithLabels"
              icon="###censored###"/>
   </basemaps>

       <operationallayers>
         <layer label="Green and White Area" type="dynamic" visible="false" alpha="0.6" imageformat="png32"
                   url="###censored###">
                   <sublayer id="0" popupconfig="popups/PopUp_GrnWht.xml"/>
            </layer>       

         <layer label="Natural Regions and Subregions" type="dynamic" visible="false" alpha="0.4" imageformat="png32"
                   url="###censored###">
                   <sublayer id="3" popupconfig="popups/PopUp_NatSubRegion.xml"/>
            </layer>

   <layer label="Historical Resource Values" type="dynamic" visible="false" alpha="0.6" imageformat="png32"
                   url="###censored###">
                   <sublayer id="0" popupconfig="popups/PopUp_HRV.xml"/>
            </layer>

            <layer label="Alberta Dispositions" type="dynamic" visible="false" alpha="0.8" imageformat="png32"
                   url="###censored###">
                   <sublayer id="0" popupconfig="popups/PopUp_AB_Disp.xml"/>  
            </layer>
   
            <layer label="Grids" type="tiled" visible="false"
                   url="###censored###"/>
        </operationallayers>
    </map>


    <!-- widgets organized into widget containers that manage close/open etc -->
    <!-- supported layout property options: horizontal(default)|float|vertical|fix-->
    <widgetcontainer layout="float">
     <widget label="Bookmarks"
             icon="assets/images/i_bookmark.png"
             config="widgets/Bookmark/BookmarkWidget.xml"
             url="widgets/Bookmark/BookmarkWidget.swf"/>
        <widget label="Legal Location Search" left="60" top="400"
                icon="assets/images/i_search.png"
                config="widgets/Search/SearchWidget.xml"
                url="widgets/Search/SearchWidget.swf"/>
     <widget label="Measure and Draw" left="60" top="400"
                icon="assets/images/i_measure.png"
                config="widgets/Draw/DrawWidget.xml"
                url="widgets/Draw/DrawWidget.swf"/>
        <widget label="Legend"
                preload="closed"
             config="widgets/Legend/LegendWidget.xml"
          icon="assets/images/Legend32.png"
             url="widgets/Legend/LegendWidget.swf"/>
    </widgetcontainer>
    
</configuration>


Thanks again.
0 Kudos
HeatherGonzago
Esri Contributor
Your config file looks fine from what I can see. Since I can't actually check the services you are trying to display, I'm not sure if that is something that could be causing some issues.

Could you try one thing?

Set the wraparound property to false.

<map wraparound180="true"  .....


Do you still get the same issue?

Also, does any of the information asked and given in this thread sound familar? http://forums.arcgis.com/threads/73799-Issues-with-3.1-Flex-Viewer-and-App-Builder
0 Kudos
by Anonymous User
Not applicable
Original User: mattias_j

I have similar problems using the compiled version, first time loading after deleting browser cache a lot of stuff, widgets, icons etc are not loaded but after refreshing the page it loads correctly.
setting wraparound180 to false doesn't change anything...
I'm also having problems with the AppBuilder when using my own basemaps, but I'll post a new thread about that.
0 Kudos
by Anonymous User
Not applicable
Original User: btelliot

Hi Heather,

The basemaps we are using are web mercator projection, but I went ahead and set the <map wraparound180="false"...
and it didn't fix the problem.

I've tested all of the map services with the flexviewer 3.0  application, so I know all of my map services are functioning properly.

The questions asked in the other thread seem to be for a slightly different problem.  My main problem is that most of the default widgets, icons, and UI are not loading properly the first time when loading the map from a cleared cache.

Thanks again for the help with this,

Brett
0 Kudos
DasaPaddock
Esri Regular Contributor
Can you check your web server's log files for any errors? I'd also try using a tool like the Firefox Add-on HttpFox to see what's happening to the requests.
0 Kudos
by Anonymous User
Not applicable
Original User: btelliot

I can't get Firefox on my work computer.  Is there an equivalent plug-in for chrome?
0 Kudos
DasaPaddock
Esri Regular Contributor
Try using Tools -> Developer Tools and then looking at the Network tab.
0 Kudos