Need to Remove Graphical Search and set different zoom level for searchWidget Layers

1486
2
12-04-2010 12:46 AM
arunmohan
New Contributor
Hi,

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>

Regards
Arun Mohan
Tags (2)
0 Kudos
2 Replies
RobertScheitlin__GISP
MVP Emeritus
Arun Mohan,

   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.

Be sure to use the appropriate forum for FlexViewer:
http://forums.arcgis.com/forums/111-ArcGIS-Viewer-for-Flex
This is just the Flex API forum for non FlexViewer posts.
0 Kudos
Arusham
New Contributor
Hi  Robert,

Thanks for your help.

Regards
Arun Mohan
0 Kudos