<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>
definitionexpression="County <> 'Brunswick' AND County <> 'Bertie'"
definitionexpression="County > 'Bertie' AND County < 'Brunswick' "
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; }
<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>
<?xml version="1.0" ?> <!-- See Enhanced Search Widget XML Configuration.pdf for detailed explanation --> <configuration> <layers> <layer> <definitionexpression>(County = 'Brunswick') OR (County = 'Bertie')</definitionexpression> <enableexport>false</enableexport> <name>NC Surveyed Only</name> <url>http://gis.ncdcr.gov/ArcGIS/rest/services/NC_Surveyed_Only/MapServer/0</url> <expressions/> <graphicalsearchlabel>Click for Info</graphicalsearchlabel> <spatialsearchlayer>false</spatialsearchlayer> <titlefield>Site_ID</titlefield> <fields all="false"> <field name="Id" alias="Id" numberformat="2|,|." /> <field name="Staus" alias="Staus" gridfield="false" /> <field name="Site_Name" alias="Site_Name" gridfield="false" /> <field name="Quad_Name" alias="Quad_Name" gridfield="false" /> <field name="Notes" alias="Notes" gridfield="false" /> <field name="DESCRIPTIO" alias="DESCRIPTIO" gridfield="false" /> <field name="YearSurvey" alias="YearSurvey" gridfield="false" /> <field name="YearUpdate" alias="YearUpdate" gridfield="false" /> <field name="County" alias="County" gridfield="false" /> <field name="Density" alias="Density" gridfield="false" /> <field name="HDstatus" alias="HDstatus" gridfield="false" /> </fields> <links/> <zoomscale usegeometry="true" zoompercent="1"></zoomscale> <autoopendatagrid>false</autoopendatagrid> <queryattachments>false</queryattachments> <relates/> <symbology> <simplefillsymbol color="0x0000ff" alpha="0.5"> <outline color="0x00ffff" alpha="0.8" width="2" /> </simplefillsymbol> </symbology> </layer> <layer> <definitionexpression>NOT((County = 'Brunswick') OR (County = 'Bertie'))</definitionexpression> <enableexport>false</enableexport> <name>NC Surveyed Only</name> <url>http://gis.ncdcr.gov/ArcGIS/rest/services/NC_Surveyed_Only/MapServer/0</url> <expressions/> <graphicalsearchlabel>Click for Info</graphicalsearchlabel> <spatialsearchlayer>false</spatialsearchlayer> <titlefield>Site_ID</titlefield> <fields all="false"> <field name="Id" alias="Id" numberformat="2|,|." /> <field name="Staus" alias="Staus" gridfield="false" /> <field name="Site_Name" alias="Site_Name" gridfield="false" /> <field name="County" alias="County" gridfield="false" /> </fields> <links/> <zoomscale usegeometry="true" zoompercent="1"></zoomscale> <autoopendatagrid>false</autoopendatagrid> <queryattachments>false</queryattachments> <relates/> <symbology> <simplefillsymbol color="0x0000ff" alpha="0.5"> <outline color="0x00ffff" alpha="0.8" width="2" /> </simplefillsymbol> </symbology> </layer> </layers> .................................... <spatialrelationships> <keepgraphicalsearchenabled>true</keepgraphicalsearchenabled> <autozoomtoresults>true</autozoomtoresults> <popupsdisabled>false</popupsdisabled> <enabledatagridinteractionwithwidget>false</enabledatagridinteractionwithwidget> <toleranceforpointgraphicalselection>6</toleranceforpointgraphicalselection><!-- value is in screen pixels --> <tolerancebydefault>false</tolerancebydefault> <spatialreference>102100</spatialreference> <zoomscale>2400</zoomscale> <geometryservice>http://tasks.arcgisonline.com/ArcGIS/rest/services/Geometry/GeometryServer</geometryservice> <csvseparator>,</csvseparator> <disablebuttons>text,result,spatial,grid,datagrid</disablebuttons><!--possible values one or more not all four search types comma separated text,graphic,spatial,grid,datagrid --> <defaultselectionoption>graphicalInput</defaultselectionoption><!--possible values only one graphicalInput or textInput or spatialInput --> <enabledrawgraphicbutton>true</enabledrawgraphicbutton> <enablebuffergraphicbutton>true</enablebuffergraphicbutton> <selectedgraphicaltool>mappoint</selectedgraphicaltool><!-- possible values are extent or polygon or mappoint or polyline or nothing --> <multipartgraphicsearch>false</multipartgraphicsearch> <floatorfixed>float</floatorfixed><!-- possible values are fixed and float --> <relatetooltip>Show Relates</relatetooltip> <relateicon>widgets/eSearch/assets/images/i_relate.png</relateicon> ....................................................
for each (var fieldInfo:PopUpFieldInfo in popUpInfo.popUpFieldInfos) { if (fieldInfo.visible && (hostComponent.featureLayer.url == "http://gis01.wch-rcc.com/ArcGIS/rest/services/Base/Buildings2/MapServer/0" && fieldInfo.fieldName == "TURNOVER_AREA") && (formattedAttributes[fieldInfo.fieldName] > "100-B/C" && formattedAttributes[fieldInfo.fieldName] < "100-K")) { break; }else if (fieldInfo.visible && formattedAttributes[fieldInfo.fieldName] && formattedAttributes[fieldInfo.fieldName] != " ") { var fieldLabel:Label = new Label();
I cannot get both of my two defintionexpression clauses to function properly simultaneously. With the code below, only the second expression takes affect. <layer label="NC Surveyed Only" type="dynamic" visible="true" alpha="1.0" url="http://gis.ncdcr.gov/ArcGIS/rest/services/NC_Surveyed_Only/MapServer"> <sublayer id="0" popupconfig="popups/PopUp_Surveyed_NoPhoto.xml" definitionexpression="County <> 'Brunswick' AND County <> 'Bertie'" /> <sublayer id="0" popupconfig="popups/PopUp_Surveyed_Photo.xml" definitionexpression="(County = 'Brunswick') OR (County = 'Bertie')" /> <!-- sublayer id="0" popupconfig="popups/PopUp_Surveyed_Photo.xml" /> --> </layer>
<layer label="NC Surveyed Only" type="dynamic" visible="true" alpha="1.0" url="http://gis.ncdcr.gov/ArcGIS/rest/services/NC_Surveyed_Only/MapServer"> <sublayer id="0" popupconfig="popups/PopUp_Surveyed_NoPhoto.xml" definitionexpression="County <> 'Brunswick' AND County <> 'Bertie'" /> <sublayer id="0" popupconfig="popups/PopUp_Surveyed_Photo.xml" definitionexpression="(County = 'Brunswick') OR (County = 'Bertie')" /> <!-- sublayer id="0" popupconfig="popups/PopUp_Surveyed_Photo.xml" /> --> </layer>
Angemeldete Mitglieder können Beiträge verfassen, Updates folgen und mehr. Neu hier? Registriere ein kostenloses Konto.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.