Problem formatting Output from Search Widget

906
4
Jump to solution
07-22-2013 12:50 PM
BrianHall1
New Contributor III
I am just starting in Flex Viewer and am having trouble getting my Search Widget result features to be formatted the way I need them to be.  Usually I just copy and edit code from elsewhere but have been unable to find any that changes the output of the Search Widget.
Seems no matter what I do, I still get the default red output color and alpha.
My code looks like this (top lines not shown):

            <field name="DeedOut" alias="DeedOut"/>
                <field name="LandType" alias="LandType"/>
                <field name="NotesAll" alias="NotesAll"/>
            </fields>
            <orderbyfields>DateIn ASC</orderbyfields>
        </layer>
    </layers>
<symbols>
  <simplefillsymbol>
   color="0x99CCFF"
   alpha="0.2"
         </simplefillsymbol>
</symbols>

</configuration>

Can anyone help?
-Brian Hall
Tags (2)
0 Kudos
1 Solution

Accepted Solutions
AnthonyGiles
Frequent Contributor
Brian,

Sorry i gave you the code for points not for polygons, try the following:

<symbols>    <simplefillsymbol color="0x00ffff" alpha="0.5">        <outline color="0xff0000" alpha="0.8" width="2" />    </simplefillsymbol> </symbols>


Regards

Anthony

View solution in original post

0 Kudos
4 Replies
AnthonyGiles
Frequent Contributor
Brian

Try using the following code in your symbols section, this should be a green circle with a red outline

<symbols>
   <simplemarkersymbol style="circle" size="12" color="0x00ff00" alpha="0.5" xoffset="0" yoffset="0" angle="0">
      <outline style="solid" color="0xff0000" alpha="1" width="1"/>
   </simplemarkersymbol>
</symbols>


The other options for the type of marker can be found here:

http://resources.arcgis.com/en/help/flex-viewer/concepts/index.html#/Rendering_and_Symbology_tags/01...

Regards

Anthony
0 Kudos
BrianHall1
New Contributor III
Anthony,
Thanks for the real fast reply!  I tried your code and still getting same old default red polygons (I did clear cache).  I'll try the resources link tomorrow.

-Brian
0 Kudos
AnthonyGiles
Frequent Contributor
Brian,

Sorry i gave you the code for points not for polygons, try the following:

<symbols>    <simplefillsymbol color="0x00ffff" alpha="0.5">        <outline color="0xff0000" alpha="0.8" width="2" />    </simplefillsymbol> </symbols>


Regards

Anthony
0 Kudos
BrianHall1
New Contributor III
Thanks Anthony!!!!
That worked perfectly; its amazing how a little change in coding can have saved me five hours!
0 Kudos