<layer> <name>LayerName</name> <fields>field1,field2</fields> <linkfield>linkField</linkfield> <linkprefix>http://webserverurl/index.php?linkField=</linkprefix> <linksuffix></linksuffix> <iconefield>otherField</iconefield> <iconeprefix>http://pictureWebserver/index.php?otherField=</iconeprefix> <iconesuffix>suffixValue(jpg)</iconesuffix> <imagefield>otherField</imagefield> <imageprefix>http://pictureWebserver/index.php?otherField=</imageprefix> <imagesuffix>suffixValue(jpg)</imagesuffix> <zoomscale>5000</zoomscale> </layer>
Thank you for this inescapable Widget !In previous version (1.3) i've tweaked it because we needed prefix and suffix configuration for the link field. We also needed to purpose picture and hyperLink in the same info popup and Icon could be different for a layer or regarding field value. In previous version i think zoomscale could be different regarding the layer.And then, the cherry on the cake (like is said in my country) would be that icon for the hyperlink could be configurable for the widget.Could this modifications be integrated in your widget ? I hope this could interest other users.Regards.ErwanMy configuration for a layer looked like :<layer> <name>LayerName</name> <fields>field1,field2</fields> <linkfield>linkField</linkfield> <linkprefix>http://webserverurl/index.php?linkField=</linkprefix> <linksuffix></linksuffix> <iconefield>otherField</iconefield> <iconeprefix>http://pictureWebserver/index.php?otherField=</iconeprefix> <iconesuffix>suffixValue(jpg)</iconesuffix> <imagefield>otherField</imagefield> <imageprefix>http://pictureWebserver/index.php?otherField=</imageprefix> <imagesuffix>suffixValue(jpg)</imagesuffix> <zoomscale>5000</zoomscale> </layer>
Great widget! I have one question. I am getting duplicate results. Do you have any idea why? Thank you for posting this widget.Never mind, I figured it out my mistake. Thanks!Shannon
private function identifyFeatures():void { var identifyParams : IdentifyParameters = new IdentifyParameters(); identifyParams.returnGeometry = false; identifyParams.tolerance = identifyTolerance; identifyParams.geometry = identifyPoint; identifyParams.width = map.width; identifyParams.height = map.height; identifyParams.mapExtent = map.extent; identifyParams.spatialReference = map.spatialReference; //You have to know the id number of your layer here identifyParams.layerIds = [23]; var identifyTask:IdentifyTask = new IdentifyTask("http://yourserver/arcgis/yourservice/mapserver); identifyTask.addEventListener(IdentifyEvent.EXECUTE_COMPLETE, onResult); identifyTask.addEventListener(FaultEvent.FAULT, onFault); identifyTask.execute(identifyParams); showMessage(loadingLabel, true); showStateResults(); }
Will, If you only want one layer of one particular map service and that is it than you need to look at the identifyFeatures function in the IdentifyWidget.mxml and basically delete all the for loop an just hard code the identifyParams and identify task something like this private function identifyFeatures():void { var identifyParams : IdentifyParameters = new IdentifyParameters(); identifyParams.returnGeometry = false; identifyParams.tolerance = identifyTolerance; identifyParams.geometry = identifyPoint; identifyParams.width = map.width; identifyParams.height = map.height; identifyParams.mapExtent = map.extent; identifyParams.spatialReference = map.spatialReference; //You have to know the id number of your layer here identifyParams.layerIds = [23]; var identifyTask:IdentifyTask = new IdentifyTask("http://yourserver/arcgis/yourservice/mapserver); identifyTask.addEventListener(IdentifyEvent.EXECUTE_COMPLETE, onResult); identifyTask.addEventListener(FaultEvent.FAULT, onFault); identifyTask.execute(identifyParams); showMessage(loadingLabel, true); showStateResults(); }
<labels> <zoom2message>Test - 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>
The options "top", "visible:1" or "all:2,4" have strange behaviour when you have more operational mapservices. If you have 2 mapservices, the result of "top" gives you 2 layers back!
As far as the keeping the identify tool active after the initial identify all you need to do is add activateIdentifyTool(); in to the drawEnd function. I will add an option for this to the config.
For the mousing over the graphic this has never been available for the identify because you need to consider which layer you would display the results for since all the layers are identified using the same exact point. This is just not feasible.
Membros conectados podem postar, seguir atualizações e mais. Novo aqui? Registre uma conta gratuita.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.