Select to view content in your preferred language

FeatureTooltip widget for FlexViewer 2.4 doesnt work...

3135
25
Jump to solution
03-08-2012 10:44 AM
GilbertLasnier
Regular Contributor
1 code of tooltip from Robert <widget left="0" top="0" config="widgets/FeatureTooltip/FeatureTooltipWidget.xml" url="widgets/FeatureTooltip/FeatureTooltipWidget.swf"/>

2 code for the layers tooltip <layer label="SCAN DATA" type="feature" visible="true" alpha="1"
                   url="http://gis.icao.int/ArcGIS/rest/services/SCAN/MapServer/1"/>   
            <layer label="Louisville Police Facilities" type="feature" visible="true" alpha="1"
                   url="http://sampleserver1.arcgisonline.com/ArcGIS/rest/services/Louisville/LOJIC_PublicSafety_Louisville/..."/>

3 detail for the tooltip <configuration>
<layers>
  <layer>
            <name>ICAO Reg Office</name>
            <fields>name</fields>
            <datefields></datefields>
            <dateformat>MM/DD/YYYY</dateformat>
        </layer>
  <layer>
            <name>SCAN data</name>
            <fields>STATE,ENTITY,PROVIDER</fields>
            <datefields></datefields>
            <dateformat>MM/DD/YYYY</dateformat>
        </layer>
        <layer>
            <name>Louisville Police Facilities</name>
            <fields>PD_NAME</fields>
            <datefields></datefields>
            <dateformat>MM/DD/YYYY</dateformat>
        </layer>
            </layers>
    <!-- The length of time, in milliseconds, that Flex waits to hide the ToolTip box after it appears. -->
    <!-- This setting affects all tooltips in the application so use with caution -->
    <hidedelay>3000</hidedelay>
</configuration>
the site http://gis.icao.int/scanedit   your Police Facilities work ....
the arcgisrest http://gis.icao.int/arcgis/rest look for scan
Merci Many thanks Robert Scheitlin for your great work i am waithing for a miracle Its two days i try and i try ???
Tags (2)
0 Kudos
25 Replies
RobertScheitlin__GISP
MVP Emeritus
Gilbert,

   You issue is that Flex is a case sensitive language, so when you define the layer names in the FeatureToolip.xml thay have to be the same case as you wrote them in the main config.xml and you need to use the same names!

<?xml version="1.0" ?>

<configuration>
    <layers>
        <layer>
            <name>SCAN DATA</name>
            <fields>name</fields>
            <datefields></datefields>
            <dateformat>MM/DD/YYYY</dateformat>
        </layer>
        <layer>
            <name>SCAN Facilities</name>
            <fields>STATE</fields>
            <datefields></datefields>
            <dateformat>MM/DD/YYYY</dateformat>
        </layer>
        <layer>
            <name>Louisville Zoning</name>
            <fields>ZONING_CODE,ZONING_NAME,ZONING_TYPE</fields>
            <datefields></datefields>
            <dateformat>MM/DD/YYYY</dateformat>
        </layer>
        <layer>
            <name>Louisville Police Facilities</name>
               <fields>PD_NAME</fields>
               <datefields></datefields>
               <dateformat>MM/DD/YYYY</dateformat>
        </layer>
        <layer>
            <name>Louisville Traffic Cameras</name>
               <fields>DESCRIPTION</fields>
               <datefields>LAST_UPDATED</datefields>
               <dateformat>MM/DD/YYYY</dateformat>
        </layer>
    </layers>
    <!-- The length of time, in milliseconds, that Flex waits to hide the ToolTip box after it appears. -->
    <!-- This setting affects all tooltips in the application so use with caution -->
    <hidedelay>3000</hidedelay>
</configuration>
0 Kudos
GilbertLasnier
Regular Contributor
Ca marche... its working Many thanks Robert for your patience !!!!
Last 2 questions; its impossible to put a link field in that tooltip???

<layer>
             <name>scan data</name>
            <fields>STATE,ENTITY,PROVIDER,FUNDING,ACTIVITY,DATE,CONTACT,GOAL,EMAIL</fields>
             <linkfield>EMAIL</linkfield>
            <datefields></datefields>
            <dateformat>MM/DD/YYYY</dateformat>
        </layer>
Do you think its willbe possible to make like the query tool you make
to see the name of the field in the tooltips???
<layer>http://gis.icao.int/ArcGIS/rest/services/SCAN/MapServer/0</layer>
    <titlefield>STATE</titlefield>
    <linkfield>EMAIL</linkfield>
    <fields all="false">
  <field name="STATE"alias="STATE"/>
  <field name="ENTITY"alias="ENTITY"/>
  <field name="PROVIDER"alias="PROVIDER"/>
  <field name="FUNDING"alias="FUNDING"/>
               <field name="ACTIVITY"alias="ACTIVITY"/>
  <field name="DATES"alias="DATES"/>
  <field name="CONTACT"alias="CONTACT"/>
  <field name="GOAL"alias="GOAL"/>
  <field name="EMAIL"alias="EMAIL"/>
       
    </fields>
its possible to put and picture like
<layer>
   <name>scan data</name>
            <fields>STATE,ENTITY,PROVIDER,FUNDING,ACTIVITY,DATE,CONTACT,GOAL,EMAIL,SYMBOL</fields>
   <linkfield>EMAIL</linkfield>
            <datefields></datefields>
            <dateformat>MM/DD/YYYY</dateformat>
        </layer>
Go to india New deli in the map look the tool tip in http://gis.icao.int/scanedit   (you help the guys of Texas to do that with 2.2 FLEX tooltip with picture...)
where symbol is equal to http://gis.icao.int/SCANEDIT/assets/images/i_hydro.png in my ArcMap with url link activate... its work before in 1.3 flex????
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
Gilbert,

   No link in the MapTips is not possible. This widget came out a long time before PopUps in the Flex Viewer. If you want links and alot more flexability than you need to be using PopUps instead.

http://help.arcgis.com/en/webapps/flexviewer/help/01m3/01m30000002q000000.htm
0 Kudos
GilbertLasnier
Regular Contributor
Gilbert,

   No link in the MapTips is not possible. This widget came out a long time before PopUps in the Flex Viewer. If you want links and alot more flexability than you need to be using PopUps instead.

http://help.arcgis.com/en/webapps/flexviewer/help/01m3/01m30000002q000000.htm


I MAKE THE POPUPS before but the people like more your maptips
to put a picture do you think its possible???? in your maptips...
Are you able to make a popups that is working like the rool over mouse of the maptips because my popups I must always click on the icon map...
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
Gilbert,

   Nope, I don't have any intention on enhancing this widget now or in the future to support images.
0 Kudos
GilbertLasnier
Regular Contributor
rscheitlin;181229 wrote:
Gilbert,


   Nope, I don't have any intention on enhancing this widget now or in the future to support images.[/QUOTE
Thanks to you for all your answerd...

Last question?  Do you know why I must mouve the map a littebit to view the tooltip in my http://gis.icao.int/scan
Go to my site its very strange http://gis.icao.int/scan
Do you think its because I put alpha = to 0 and i must wake up the application...
OTHER STRANGE THINK if you try in the http://gis.icao.int/scanedit
the edit with scan (in scanedit) I am not able to see the attachement
and with your example 331 its working in the same services (in scanedit)
What I am missing????
Tank you again for you fast answerd Robert...
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
Gilbert,

   Add  mode="snapshot" to your layer element in the main config.xml for each of your layers you are use a FeatureTooltip on. As far as the attachments I don't know whats wrong.

Don't forget to click the top arrow (promote) on this post as shown below:
0 Kudos
GilbertLasnier
Regular Contributor
Gilbert,

   Add  mode="snapshot" to your layer element in the main config.xml for each of your layers you are use a FeatureTooltip on. As far as the attachments I don't know whats wrong.

Don't forget to click the top arrow (promote) on this post as shown below:

<layer label="scan data tooltip" type="feature" visible="true" alpha="0.0" mode="snapshot"
                   url="http://gis.icao.int/ArcGIS/rest/services/SCAN/MapServer/2"/>
i try ,doesnt work ,i try also ondemand ??? dont forget its an event theme layer!!!
OK i go to arc catalogue for the attachement its morking i dont understand the cote i must always sing in???and after i am able to click???
0 Kudos
NathanBell1
Emerging Contributor
Robert,

I am having the same issue as Gilbert. When I first login to the map, I have to change to pan the map before the map tips start displaying. Here is the XML for my layer that I am trying to display the tips on.

<layer label="Restaurants" type="feature" visible="true" alpha="1" mode="snapshot"
        url="http://bleck/rest/services/Economic_Development/MapServer/5"/>
Can you please let me know how to fix this?

Thanks,

Nathan Bell
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
Gilbert and Nathan,

   I can confirm the behavior that you both are seeing and will see if the Flex API team has an insight into why this is only seeming to happen sporadically with point features. Have either of you noticed this behavior with any other geometry type that points?
0 Kudos