Select to view content in your preferred language

Identify Widget 2.2.3

1552
5
04-01-2011 10:53 AM
RickVera
New Contributor
I am having issues trying to replace the icon field with a thumbnail picture. Everytime I edit the appropriate tags I of course loose the original icon and get the broken icon link. I would like to have it run similar to the sample using the traffic cameras.

Thanx.
Tags (2)
0 Kudos
5 Replies
RobertScheitlin__GISP
MVP Emeritus
Rick,

   Your going to have to give me something to diagnose here... What does your IdentifyWidget.xml look like?
0 Kudos
RickVera
New Contributor
Sorry Robert i have edited this xml 100x, all with not so great results. I want to have the standard play button once identified, and then the thumbnail image with some attributes and show link to the full size gps camera image.

This edited xml gives me the small thumbnail image instead of the "play button" than a broken link icon on the click to zoom window.

<configuration>
<identifylayeroption>visible</identifylayeroption>
<identifytolerance>5</identifytolerance>
<defaultzoomscale>5000</defaultzoomscale>
<keepidentifyactive>false</keepidentifyactive>
<returngeometryforzoom>true</returngeometryforzoom>
<labels>
  <zoom2message>Click to Zoom to Point</zoom2message>
  <identifylabel>Identify</identifylabel>
  <resultslabel>Results</resultslabel>
  <descriptionlabel>Use the identify tool to identify features on the map:</descriptionlabel>
  <pointlabel>Identify by Point</pointlabel>
  <linelabel>Identify by Polyline</linelabel>
  <rectlabel>Identify by Rectangle</rectlabel>
  <polylabel>Identify by Polygon</polylabel>
  <clearlabel>Clear</clearlabel>
  <loadinglabel>Loading...</loadinglabel>
</labels>
<useproxy>
  <proxylayer>
   <!--name>Imagery</name-->
  </proxylayer>
</useproxy>
<layers onlythese="true">
  <layer>
   <name>Core_Borings</name>
   <fields>Boring_nam,County_Nam,City_name,PDF_name</fields>
   <linkfield>PDF_name</linkfield>
   <linkprefix></linkprefix>
   <linksuffix></linksuffix>
   <iconfield></iconfield>
   <iconprefix></iconprefix>
   <iconsuffix></iconsuffix>
   <zoomscale>15000</zoomscale>
   <forcescale>true</forcescale>
  </layer>
  <layer>
   <name>Picture</name>
   <fields>FileName,iname,Subject,Latitude,Longitude,PhotoDirection</fields>
   <linkfield>FileName</linkfield>
   <linkprefix>\flexviewer\camera\Galv_301-398\Output\</linkprefix>
   <linksuffix></linksuffix>
   <iconfield>iname</iconfield>
   <iconprefix>http://155.84.170.223/flexviewer/camera/Galv_301-398/Output/Thumbnail/</iconprefix>
   <iconsuffix></iconsuffix>
   <zoomscale>15000</zoomscale>
   <forcescale>true</forcescale>
  </layer>
  <layer>
   <name>Weather Observations</name>
   <fields>Icon_used,URL,Type,OBJECTID</fields>
   <linkfield>URL</linkfield>
   <linkprefix></linkprefix>
   <linksuffix></linksuffix>
   <iconfield>Icon_used</iconfield>
   <iconprefix>http://gislap134/FlexViewer2.2/assets/images/i_</iconprefix>
   <iconsuffix>.png</iconsuffix>
   <zoomscale>15000</zoomscale>
   <forcescale>true</forcescale>
  </layer>
</layers>
<symbols>
     <simplefillsymbol color="0x448ccb" alpha="0.4" style="solid">
      <outline color="0x448ccb" alpha="0.8" width="2"/>
     </simplefillsymbol>
     <simplemarkersymbol style="circle" size="12" color="0x448ccb" alpha="0.8" xoffset="0" yoffset="0" angle="0">
      <outline style="solid" color="0xffffff" alpha="0.8" width="1"/>
     </simplemarkersymbol>
     <picturemarkersymbol url="assets/images/i_info.png" height="30" width="30" xoffset="0" yoffset="0" />
  <simplelinesymbol color="0x448ccb" alpha="0.8" width="2"/>
    </symbols>
<info>widgets/InfoTemplates/InfoPopupWidget.swf</info>
</configuration>
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
Rick,

I am not sure I fully understand what you are wanting but lets fix the major issues first and then you might understand enough to get what you want.

All the link and link icon urls have to be just that urls and not file system paths... What is colored in red is a file system path and flash player does not have access to the file system.

Give me an example of what the field iname contains.

<layer>
<name>Picture</name>
<fields>FileName,iname,Subject,Latitude,Longitude,PhotoDirection</fields>
<linkfield>FileName</linkfield>
<linkprefix>\flexviewer\camera\Galv_301-398\Output\</linkprefix>
<linksuffix></linksuffix>
<iconfield>iname</iconfield>
<iconprefix>http://155.84.170.223/flexviewer/camera/Galv_301-398/Output/Thumbnail/</iconprefix>
<iconsuffix></iconsuffix>
<zoomscale>15000</zoomscale>
<forcescale>true</forcescale>
</layer>
0 Kudos
CarolineCochrane
Deactivated User
Hello, if possible can anyone point me in the direction of the download for the Identify Widget 2.2.3. I am unable to locate this for some reason.

Thanks a lot.

Caroline
0 Kudos
JonathanWatson
Emerging Contributor
Seems as if the normal Flex Widget page is broken.

Can find them another way:
http://www.arcgis.com/home/search.html?q=flex&t=content

And there is an (older) list of a lot of them here:
http://forums.arcgis.com/threads/20654-Announcing-the-Flex-A-Widget-Challenge-for-the-ArcGIS-Viewer-...
0 Kudos