<layer label="Post-closure" type="dynamic" visible="true" alpha="1" url="http://gis01.wch-rcc.com/ArcGIS/rest/services/SDCV_custom/WCH_WIDS_Status/MapServer"> <sublayer id="3" popupconfig="popups/PopUp_wastepolys.xml" definitionexpression="LVL1Stage = 'Post-closure'"/> <sublayer id="1" popupconfig="popups/PopUp_wastepoints.xml" definitionexpression="LVL1Stage = 'Post-closure'"/> <sublayer id="2" popupconfig="popups/PopUp_wastelines.xml" definitionexpression="LVL1Stage = 'Post-closure'"/> </layer> <layer label="Closure" type="dynamic" visible="true" alpha="1" url="http://gis01.wch-rcc.com/ArcGIS/rest/services/SDCV_custom/WCH_WIDS_Status/MapServer"> <sublayer id="3" popupconfig="popups/PopUp_wastepolys.xml" definitionexpression="LVL1Stage = 'Closure'"/> <sublayer id="1" popupconfig="popups/PopUp_wastepoints.xml" definitionexpression="LVL1Stage = 'Closure'"/> <sublayer id="2" popupconfig="popups/PopUp_wastelines.xml" definitionexpression="LVL1Stage = 'Closure'"/> </layer> <layer label="RTD" type="dynamic" visible="true" alpha="1" url="http://gis01.wch-rcc.com/ArcGIS/rest/services/SDCV_custom/WCH_WIDS_Status/MapServer"> <sublayer id="3" popupconfig="popups/PopUp_wastepolys.xml" definitionexpression="LVL1Stage = 'RTD'"/> <sublayer id="1" popupconfig="popups/PopUp_wastepoints.xml" definitionexpression="LVL1Stage = 'RTD'"/> <sublayer id="2" popupconfig="popups/PopUp_wastelines.xml" definitionexpression="LVL1Stage = 'RTD'"/> </layer> <layer label="Confirmatory" type="dynamic" visible="true" alpha="1" url="http://gis01.wch-rcc.com/ArcGIS/rest/services/SDCV_custom/WCH_WIDS_Status/MapServer"> <sublayer id="3" popupconfig="popups/PopUp_wastepolys.xml" definitionexpression="LVL1Stage = 'Confirmatory'"/> <sublayer id="1" popupconfig="popups/PopUp_wastepoints.xml" definitionexpression="LVL1Stage = 'Confirmatory'"/> <sublayer id="2" popupconfig="popups/PopUp_wastelines.xml" definitionexpression="LVL1Stage = 'Confirmatory'"/> </layer>This way, I can have it draw only a subset of each based on my definition and it loads a point, line, and polygon layer and displays features in all three that match the query that loads as a "single" layer.
Solved! Go to Solution.
<medias> <media type="image" caption="{Site_Name}" imagesource="http://www.hpo.ncdcr.gov/photos/{Site_ID}.JPG" imagelink="http://www.hpo.ncdcr.gov/photos/{Site_ID}.JPG" /> </medias>
esri|PopUpRenderer { skin-class: ClassReference("com.esri.ags.skins.PopUpRendererSkin"); }
for each (var fieldInfo:PopUpFieldInfo in popUpInfo.popUpFieldInfos) { var fldName:String = formattedAttributes[fieldInfo.fieldName]; if (fieldInfo.visible && hostComponent.featureLayer.url == "http://gis.ncdcr.gov/ArcGIS/rest/services/NC_Surveyed_Only/MapServer/0" && fieldInfo.fieldName == "County" && fldName!= "Bertie" && fldName!= "Brunswick") { validMediaInfos = null; } if (fieldInfo.visible && formattedAttributes[fieldInfo.fieldName] && formattedAttributes[fieldInfo.fieldName] != " ") { var fieldLabel:Label = new Label();
if (validMediaInfos && validMediaInfos.length > 0) { vGroup.addElement(mediaBrowser); mediaBrowser.attributes = graphic.attributes; mediaBrowser.formattedAttributes = formattedAttributes; mediaBrowser.popUpFieldInfos = popUpInfo.popUpFieldInfos; mediaBrowser.popUpMediaInfos = validMediaInfos; }so that the medias don't get added to the vGroup.