Select to view content in your preferred language

Trying to change picturemarkersymbol in Locator Widget

686
2
09-26-2013 11:50 AM
deleted-user-OvQ2biYmIWQS
Deactivated User
I am using the ArcGIS Viewer for flex and trying to change the mailbox icon that the Locator widget defaults with to a different image.  I was able to customize the labels following the resources found through ESRI resources but the symbol change has not worked for me yet.  http://resources.arcgis.com/en/help/flex-viewer/concepts/index.html#/Locate_widget_tags/01m30000000r...

The image below shows exactly which icon I am trying to change.
[ATTACH=CONFIG]27801[/ATTACH]

This is the LocateWidget.xml :
<?xml version="1.0" ?>
<configuration>
    

<locator>http://ourserver/arcgis/rest/services/PublishedGPTools/StreetlightFinder/GeocodeServer</loc

ator>
    <usesearchextent>false</usesearchextent>
    <minscore>40</minscore>
    <zoomscale>2258</zoomscale>
<labels>
 <addresslabel>Pole ID</addresslabel>
 <addresstitle>Enter Pole ID</addresstitle>
 <resultslabel>No matching streetlights found</resultslabel>
 <locationslabel>Streetlight Pole ID found</locationslabel>
</labels>

<symbols>
<picturemarkersymbol>
 url="assets/images/ESRI_streetlight.png"
 height=30
 width=30
 xoffset=0
 yoffset=0
</picturemarkersymbol>
</symbols>

</configuration>


What am I missing here?
Tags (2)
0 Kudos
2 Replies
RobertScheitlin__GISP
MVP Emeritus
Nancy,

   You are just mistaken in the fact that you have control over that icon from the configuration. That icon is hard coded into the widget. What you have control over is the icon that is placed on the map based on the results of your operation in the widget.

If you are one that has the capability to work with the source code then it is a small thing to change that line of code and recompile the widget.
0 Kudos
deleted-user-OvQ2biYmIWQS
Deactivated User
Well that would explain why it did not work.  I have both the non compiled and compiled versions downloaded, I shall see what I can do about tweaking the mailbox icon after I read up on compiling widgets. Thanks for clarifying that Robert!
0 Kudos