I have the issue using the compiled version 3.1Is there anything I can do other than comment out the popups ? (I can't implement Roberts changes given that I'm not working with source, right ?)Can anyone verify if 3.2 fixes it ?
Looking forward to a fix.
The issue is logged as:NIM088904: The header controller widget does not load properly when using tag popups in the main config.xml file. Here is the link to the bug description:http://support.esri.com/en/bugs/nimbus/TklNMDg4OTA0According to the bug description, this issue is fixed in the next release of the Flex Viewer. I will try to find out the release date for version 3.2. You will notice in the description that it references the workaround suggested by Robert Scheitlin from the forum you provided. It also references the bug Mattias Ekstrom posted on github (https://github.com/Esri/arcgis-viewer-flex/issues/28).
var visLayers:Array = []; var arcGISDynamicMapServiceLayer:ArcGISDynamicMapServiceLayer = ArcGISDynamicMapServiceLayer(layer); _dynamicMapServiceLayerInfos = arcGISDynamicMapServiceLayer.dynamicLayerInfos ? arcGISDynamicMapServiceLayer.dynamicLayerInfos : arcGISDynamicMapServiceLayer.layerInfos; if(arcGISDynamicMapServiceLayer.visibleLayers){ arcGISDynamicMapServiceLayer.visibleLayers.addEventListener(CollectionEvent.COLLECTION_CHANGE, visibleLayersChangeHandler); }else{ visLayers = getActualVisibleLayers(MapServiceUtil.getVisibleSubLayers(_dynamicMapServiceLayerInfos), _dynamicMapServiceLayerInfos); ArcGISDynamicMapServiceLayer(layer).visibleLayers = new ArrayCollection(visLayers); ArcGISDynamicMapServiceLayer(layer).visibleLayers.addEventListener(CollectionEvent.COLLECTION_CHANGE, visibleLayersChangeHandler); } _visibleLayersChangeWatcher = ChangeWatcher.watch(arcGISDynamicMapServiceLayer, "visibleLayers", visibleLayersChange);
Maybe this isn't what you ment but in an earlier version I added timestamps to URLs to prevent browsers to read any config-files from cache. When adding this to my 3.1 viewer I'm getting the same problem everytime, even after refreshing the site, which is kind of obvious since the problem comes after clearing the cache and now the browser doesn't read from cache.The timestamp for popus I added to Mapmanager.mxml in the function "configurePopUps"//var popUpConfigURL:String = arrLayerPopUp.popUpConfig; var popUpConfigURL:String = String(arrLayerPopUp.popUpConfig) + "?ts=" + new Date().getTime();)We are many users experience this problem, this thread http://forums.arcgis.com/threads/76137-Header-widget-display-issue-when-upgrading-to-3.1 is about the same problem. I hope the ESRI Flex Team could take a closer look at this...
//var popUpConfigURL:String = arrLayerPopUp.popUpConfig; var popUpConfigURL:String = String(arrLayerPopUp.popUpConfig) + "?ts=" + new Date().getTime();)
TypeError: Error #1009: Det går inte att få åtkomst till en egenskap eller metod för objektreferensen null. at com.esri.viewer.components.toc.tocClasses::TocMapLayerItem/createChildren() at com.esri.viewer.components.toc.tocClasses::TocMapLayerItem() at com.esri.viewer.components.toc::TOC/registerMapLayer() at MethodInfo-386() at com.esri.viewer.components.toc.utils::MapUtil$/forEachMapLayer() at com.esri.viewer.components.toc::TOC/registerAllMapLayers() at com.esri.viewer.components.toc::TOC/commitProperties() at mx.core::UIComponent/validateProperties() at mx.managers::LayoutManager/validateProperties() at mx.managers::LayoutManager/doPhasedInstantiation() at mx.managers::LayoutManager/doPhasedInstantiationCallback()
Seems to happen for me on sublayer popups only and occurs in the getlayerinfos code in createChildren (TocMapLayerItem). When loading the toc the layer info returns a null which interrupts the widget loading process causing the UI to look a bit crazy.
TypeError: Error #1009: Det går inte att få åtkomst till en egenskap eller metod för objektreferensen null. at widgets.TOC.toc.tocClasses::TocMapLayerItem/createChildren() at widgets.TOC.toc.tocClasses::TocMapLayerItem() at widgets.TOC.toc::TOC/registerMapLayer() at MethodInfo-626() at widgets.TOC.toc.utils::MapUtil$/forEachMapLayer() at widgets.TOC.toc::TOC/registerAllMapLayers() at widgets.TOC.toc::TOC/commitProperties() at mx.core::UIComponent/validateProperties() at mx.managers::LayoutManager/validateProperties() at mx.managers::LayoutManager/doPhasedInstantiation() at mx.managers::LayoutManager/doPhasedInstantiationCallback()
Wondering if anyone has come up with a way to consistantly make it do this?
If you disable the popups, does it display correctly the first time around?
Did any of the data within the map change between 3 and 3.1? Meaning, did the indexes of the layers referenced for the popups get altered at all?
<?xml version="1.0" ?> <configuration> <title>Alberta Natural Regions and Subregions</title> <fields> <field name="NRNAME" alias= "Natural Region: " visible="true"/> <field name="NSRNAME" alias= "Natural Subregion: " visible="true"/> </fields> </configuration>
Les membres connectés peuvent publier, suivre les mises à jour, et plus encore. Nouveau ici ? Inscrivez-vous gratuitement.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.