Robert - I'm trying to incorporate the identify the widget into a viewer that also has the GeoPortal Search widget. The geoportal widget allows us to add WMS layers to the map. When I try to do an idnetify on one of the WMS layers that has been added, I get an error "Error:[IOErrorEvent type="ioError" bubbles=false cancelable=false eventPhase=2 text="Error #2032:Stream Error. URL: http://[wmsserverurl]/identify"]My guess is that wms layers are not supported by the identify widget. Any suggestions?Thanks,Barb Patterson
linkicon = identLinkIconPre + value + identLinkIconSuffix;
// 17/11/2010 #1 erwan.caradec // remove duplicate results for group of layers //line 293 identifyParams.layerIds = dynamicLayer.visibleLayers.source; identifyParams.layerIds = new Array(); for (var j:Number = 0; j < dynamicLayer.visibleLayers.source.length; j++) { if (!dynamicLayer.layerInfos[dynamicLayer.visibleLayers.source].subLayerIds) { identifyParams.layerIds.push(dynamicLayer.visibleLayers.source); } } // end of modification
Jim, The first thing I would do is either rename your layer or try another layer for this testing the "Aggravated Assault / Battery" forward slash is likely going to cause an issue in the code.
<layer label="Cadastre" type="dynamic" visible="true" url="http://41e2821/arcgis/rest/services/612637000_GEHU/Cadastre_MRWA_MGA50_201011/MapServer/"/>
<configuration> <identifylayeroption>visible</identifylayeroption> <identifytolerance>5</identifytolerance> <defaultzoomscale>5000</defaultzoomscale> <keepidentifyactive>true</keepidentifyactive> <labels> <zoom2message>Click to Zoom to Point</zoom2message> <identifylabel>Identify</identifylabel> <resultslabel>Results</resultslabel> <descriptionlabel>Use the identify tool to identify features on the map:</descriptionlabel> <pointlabel>Identify</pointlabel> <clearlabel>Clear</clearlabel> <loadinglabel>Loading...</loadinglabel> <selectionlabel>Features Identified:</selectionlabel> </labels> <layers onlythese="true"> <layer> <name>Cadastre</name> <fields>LEGAL_AREA</fields> <linkfield></linkfield> <linkprefix></linkprefix> <linksuffix></linksuffix> <iconfield></iconfield> <iconprefix></iconprefix> <iconsuffix></iconsuffix> <zoomscale>15000</zoomscale> <forcescale>true</forcescale> </layer>
<layers onlythese="false">
Travis, So does Cadastre get identified when you set <layers onlythese="false">?Is LEGAL_AREA the field alias? The identify tool requires you to specify the fields using their field alias.
Los miembros registrados pueden publicar, seguir actualizaciones y más. ¿Nuevo aquí? Regístrate gratis.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.