PopUps do not work when feature layers turned on

360
4
04-17-2012 08:06 AM
MeganBirch
New Contributor III
When the feature layers are turned on in my FlexViewer 2.5 web app, the popups that I have configured for the dynamic layer do not work.  If the feature layers are turned off, the popups appear.

The feature layers are just there for reference, but I'd like users to be able to turn on the county/municipal boundaries as they look at the election results for each district.  Can anyone explain why this is happening and what can be done to resolve it?


   [HTML]     <operationallayers>
     <layer label="Municipal Boundaries" type="feature" visible="false" alpha="1"
                   url="https://gis.dauphincounty.org/ArcGIS/rest/services/Boundaries/MapServer/1">
            </layer>
     <layer label="County Boundary" type="feature" visible="true" alpha="0.8"
                   url="https://gis.dauphincounty.org/ArcGIS/rest/services/Boundaries/MapServer/2">
            </layer>
     <layer label="Primary Races" type="dynamic" visible="true" alpha="0.6"
                   url="https://gis.dauphincounty.org/ArcGIS/rest/services/ElectionResults2012_P/MapServer">
     <sublayer id="1" popupconfig="popups/PopUp_President_R.xml"/>
     <sublayer id="2" popupconfig="popups/PopUp_President_D.xml"/>
            </layer>
        </operationallayers>[/HTML]
Tags (2)
0 Kudos
4 Replies
DasaPaddock
Esri Regular Contributor
Try the 3.0 Prerelease available at:
http://resourcesbeta.arcgis.com/en/communities/flex-viewer/

Or if you can recompile your Viewer, try setting mouseChildren and mouseEnabled to false on your feature layer in MapManager.mxml.
0 Kudos
KevinHighland
Occasional Contributor II
The popups only identify the top-most layer that is being displayed. So even though your symbology for the boundaries (feature layers) may be hollow or transparent, these features are blocking your popups from identifying the dynamic layers. That's why they don't work when your feature layers are turned on.

One way I've worked around this is to use the rsheitlin Identify Widget. You set which layers to identify and it will return all the results it encounters, not just the top-most.

You can download it here: http://www.arcgis.com/home/item.html?id=39cf66d58c234279ba728c50461a1a89
0 Kudos
MichaelMiller2
Occasional Contributor III
The popups only identify the top-most layer that is being displayed. So even though your symbology for the boundaries (feature layers) may be hollow or transparent, these features are blocking your popups from identifying the dynamic layers. That's why they don't work when your feature layers are turned on.

One way I've worked around this is to use the rsheitlin Identify Widget. You set which layers to identify and it will return all the results it encounters, not just the top-most.

You can download it here: http://www.arcgis.com/home/item.html?id=39cf66d58c234279ba728c50461a1a89


Polygons can also cause this issue and prevent your Popups to not function if the feature you're clicking on is inside a polygon.
0 Kudos
MeganBirch
New Contributor III
I did have the viewer configured so that the layer being identified was the top-most layer.  The problem only occurs when I try to use a mix of feature and dynamic operational layers -- if all the operational layers are dynamic, the popups function normally. 

I've looked into the Identify Widget in the past, but, as best I could determine from the documentation/forums, it does not work with secured services.  So, unfortunately that is not an option.

For now, I'm just going to make all the operational layers dynamic (viewer is for next week's primary) and test the 3.0 prerelease separately.
0 Kudos