Select to view content in your preferred language

Popup behavior for dynamic layers vs feature layers

852
4
06-06-2013 08:51 AM
C_EHoward
Frequent Contributor
Is there a difference in how popups are handled for dynamic and feature layers? My dynamic layer popups perform much 'better' in the fact the features are easy to identify and the popups are displayed in order of the layers in the legend. when I use the feature layer to show popups, the features are much harder to click, and the layer(s) below my feature layer(which is the top one) show first. I have to use a feature layer so I can see related records in the attribute table widget....yea, they do not show otherwise..grrrr....

I want users to have an easy time selecting features for popup, and not have to turn off layers all the time to do something that is easy with a dynamic layer.

ideas? explanations? thanks!
Tags (2)
0 Kudos
4 Replies
KellySuttles1
New Contributor
I wish I had an answer, but I have another question.  You mentioned that you have to use a feature layer for the attribute table to  work.  I have not been able to get the attribute table to work at all and now I think I understand it is because I am using a dynamic service.  After reading your post, I added a feature layer and sure enough the attribute table works. 

So is there any other work around to use the attribute table widget for dynamic services?
0 Kudos
RhettZufelt
MVP Notable Contributor
0 Kudos
KellySuttles1
New Contributor
Rhett, I am using FV 3.3. So I don't know why the attribute table does not display my dynamic layer data.  Tabs appear for the two layers, but I get the message "No features in current map extent." They are clearly visible to me in the current extent.  The only thing left to try is reloading the map service.  I had some fields hidden to clean up the tables including Shape and ObjectID.  I saw in Help Resources somewhere that it is important not to do that, so maybe that is the case here.

C E, have you tried making your feature layer not visible, so that it will not get in the way of your dynamic layer popups?

Here is how I got my attribute table to work, but I do not have to display the feature layer with the dynamic layers:

<operationallayers>
            <layer type="dynamic" label="IT Inventory Sites" imageformat="png8" url="http://sample.com/ArcGIS/rest/services/IT_Inventory/MapServer" visible="true">
                <sublayer id="0" popupconfig="popups/PopUp_1.xml"/>
                <sublayer id="1" popupconfig="popups/PopUp_2.xml"/>
            </layer>
            <layer type="feature" label="DCR Sites" url="http://sample.com/ArcGIS/rest/services/IT_Inventory/MapServer/0" visible="false"/>
        </operationallayers>
0 Kudos
C_EHoward
Frequent Contributor
Sorry for not replying sooner- I am not getting notifications by email like I am supposed to when subscribed to a thread....anyway...

Kelly- I did play around with making 2 layers (feature/dynamic) and one visible/not. That worked ok, as long as remember to modify the other widgets that control which layers are visible in the TOC or legend widget since i dont want to really have 2 layers of the same data listed. This issue was one of the (many) things Esri logged for me as a bug:[#NIM092265  If a map service with a relationship is added to a Flex Viewer 3.3 application as an operational layer, the related records will not show up in the attribute table. ]

This is one of the easier things I am trying to do with the 3.3 viewer & related data....like being able to view a date/time field in its entirety, being able to configure the related records (alias, format, etc), you know, things that seem like they should naturally be possible.
0 Kudos