Select to view content in your preferred language

Symbol tag doesn't work in Search Widget

2770
2
Jump to solution
10-02-2015 03:31 AM
PedroGarcia
Deactivated User

Has anybody tested the symbol tag functionality (for an individual layer) added at 3.6 version? I've tested it at 3.7 version (copying the lines from documentation) without success. It's always displayed default binocular image.

        <layer>

            <name>Fotos</name>

            <url>http://myserver/arcgis/rest/services/test/MapServer/0</url>

            <expression>"initial_date"  ='[value]'</expression>

            <textsearchlabel></textsearchlabel>

            <titlefield></titlefield>

            <symbol>

               <simplemarkerysymbol color="0xff66cc" size="30" style="triangle"/>

            </symbol>          

            <linkfield>url</linkfield>

            <fields all="true">

            </fields>

        </layer>

Tags (1)
0 Kudos
1 Solution

Accepted Solutions
RobertScheitlin__GISP
MVP Emeritus

Pedro,

  This worked fine for me (I am using 3.7 though).

<?xml version="1.0" ?>
<configuration>
    <zoomscale>50000</zoomscale>
    <shareresults>false</shareresults>
    <layers>
        <layer>
            <name>States</name>
            <url>http://server.arcgisonline.com/ArcGIS/rest/services/Demographics/USA_Median_Age/MapServer/4</url>
            <expression>ST_ABBREV = '[value]'</expression>
            <textsearchlabel>Select by attribute</textsearchlabel>
            <titlefield>NAME</titlefield>
            <fields>
                <field name="NAME" alias="Name"/>
                <field name="ST_ABBREV" alias="State Abbreviation"/>
                <field name="LANDAREA" alias="Land Area in Square Miles"/>
                <field name="TOTPOP_CY" alias="2012 Total Population (Esri)"/>
                <field name="MEDAGE_CY" alias="2012 Median Age (Esri)"/>
                <field name="POP80_plus" alias="2012 Total Population Age 80+ (Esri)"/>
            </fields>
            <orderbyfields>NAME ASC</orderbyfields>
            <symbol>
               <simplefillsymbol style="solid" color="0x00FF00" alpha="1">
                 <outline width="2">
                 </outline>
              </simplefillsymbol>
            </symbol>
        </layer>
    </layers>
</configuration>

View solution in original post

2 Replies
RobertScheitlin__GISP
MVP Emeritus

Pedro,

  This worked fine for me (I am using 3.7 though).

<?xml version="1.0" ?>
<configuration>
    <zoomscale>50000</zoomscale>
    <shareresults>false</shareresults>
    <layers>
        <layer>
            <name>States</name>
            <url>http://server.arcgisonline.com/ArcGIS/rest/services/Demographics/USA_Median_Age/MapServer/4</url>
            <expression>ST_ABBREV = '[value]'</expression>
            <textsearchlabel>Select by attribute</textsearchlabel>
            <titlefield>NAME</titlefield>
            <fields>
                <field name="NAME" alias="Name"/>
                <field name="ST_ABBREV" alias="State Abbreviation"/>
                <field name="LANDAREA" alias="Land Area in Square Miles"/>
                <field name="TOTPOP_CY" alias="2012 Total Population (Esri)"/>
                <field name="MEDAGE_CY" alias="2012 Median Age (Esri)"/>
                <field name="POP80_plus" alias="2012 Total Population Age 80+ (Esri)"/>
            </fields>
            <orderbyfields>NAME ASC</orderbyfields>
            <symbol>
               <simplefillsymbol style="solid" color="0x00FF00" alpha="1">
                 <outline width="2">
                 </outline>
              </simplefillsymbol>
            </symbol>
        </layer>
    </layers>
</configuration>
PedroGarcia
Deactivated User

Hi Robert,

I think it's a problem with simplemarkersymbol tag. I've tested with picturemarkersymbol and it works perfectly, however simplemarkersymbol doesn't work.

0 Kudos