I am using Flex viewer 2.1 and i need to remove the graphical search from the SearchWidget. Quick reply is appreciated
I have another question i need to fix different zoom scale for different layers while searching whether its possible currently the search displays at 5000 scale for all the results
Here is my SearchWidget.xml code
<?xml version="1.0" ?> <configuration> <layers> <layer> <name>Louisville Parcels</name> <url>http://sampleserver1.arcgisonline.com/ArcGIS/rest/services/Louisville/LOJIC_LandRecords_Louisville/M...</url> <expression>PARCELID = '[value]'</expression> <textsearchlabel>Search by Parcel ID [ Example: 181001490000 ]:</textsearchlabel> <!--graphicalsearchlabel>Use one of the graphical search tools to select incidents</graphicalsearchlabel--> <titlefield>PARCELID</titlefield> <linkfield></linkfield> <fields all="false"> <field name="PARCELID"/> </fields> </layer> <layer> <name>Louisville Police Facilities</name> <url>http://sampleserver1.arcgisonline.com/ArcGIS/rest/services/Louisville/LOJIC_PublicSafety_Louisville/...</url> <expression>PD_NAME = '[value]'</expression> <textsearchlabel>Search Police Stations by name... [ Example: 2ND DIVISION ]</textsearchlabel> <!--graphicalsearchlabel>Use one of the graphical search tools to select Police Stations</graphicalsearchlabel--> <titlefield>PD_NAME</titlefield> <linkfield></linkfield> <fields all="false"> <field name="PD_NAME"/> <field name="ADDRESS" alias="Address"/> </fields> </layer> </layers> <zoomscale>5000</zoomscale> <info>widgets/InfoTemplates/InfoPopupWidget.swf</info> </configuration>
This can not be done without changing the code. Included in the zip is the compiled version and the source code for a version of the search widget that does not have the graphical search and uses individual zoom levels for each layer.