Select to view content in your preferred language

FeatureTooltip widget for FlexViewer 2.4 doesnt work...

3117
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
1 Solution

Accepted Solutions
RobertScheitlin__GISP
MVP Emeritus
Gilbert and Nathan,

   I believe that I have fixed the need to pan the map to get some layers to display the tooltip, in version 2.5.0.1. Give it a try.

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

View solution in original post

0 Kudos
25 Replies
AnthonyGiles
Honored Contributor
Gilbert,

I have had a look at your rest endpoint for your services and I do not see an OBJECTID field. Do you have this turned off in your arcmap document. I have found this causes problems if hidden

Just an idea

Regards

Anthony
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
Gilbert,

   Be sure to post Flex Viewer / Widget questions to the flex Viewer forum here:

http://forums.arcgis.com/forums/111-ArcGIS-Viewer-for-Flex


   Your issue is simple. You have just mixed up your layers in the XML, and Flex is a case sensitive language.


<?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,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>


Don't forget to click the Mark as answer check and to click the top arrow (promote) as shown below:
0 Kudos
GilbertLasnier
Regular Contributor
Thanks to all for the fast replay,
Robert I try click the Mark as answer check and to click the top arrow (promote) as shown below:
You do that when you replay...
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
Gilbert,

   No you don't have to reply to be able to do that. You do have to click the check mark on the post that answered your question (i.e my replay to you).

Don't forget step 1 below.

0 Kudos
GilbertLasnier
Regular Contributor
Hello I change for the minuscule,   I clear the cash ON THE SERVER,  verified the config of scanedit when I go to HTTP://gis.icao.int/scanedit
The Robert layer police still work, my stuff scan data or reg office still no tooltip????

Note the regional office its a feature layer with Id
The scan data its an event theme layer
I have also under THE SERVICES countryed in the rest an arc SDE express feature layer editable but its not on the map if its needed i can try with that one

Do you think my 2 layers are feature layer do work with your widget???
<layer>
            <name>icao reg office</name>
            <fields>name</fields>
            <datefields></datefields>
            <dateformat>MM/DD/YYYY</dateformat>
        </layer>
  <layer>scan data</name>
            <fields>STATE,ENTITY,PROVIDER</fields>
            <datefields></datefields>
            <dateformat>MM/DD/YYYY</dateformat>
        </layer>
What is the next step
Thank you for your help???
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
Gilbert,

   You have created a syntax error in your xml file!

What I have in Bold Red below is suppose to be <name>.


<?xml version="1.0" ?>  <configuration>  <layers>   <layer>             <name>icao reg office</name>             <fields>name</fields>             <datefields></datefields>             <dateformat>MM/DD/YYYY</dateformat> 
        </layer>   <layer>scan data</name>             <fields>STATE,ENTITY,PROVIDER</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
RobertScheitlin__GISP
MVP Emeritus
Gilbert,

   Yes the widget will work with your data once you get it configured correctly.

[ATTACH=CONFIG]12596[/ATTACH]
0 Kudos
GilbertLasnier
Regular Contributor
I think I became creasy with that tooltip...when I copy to you when I copy my code from notepad he scrap all the code, but in my file it was good i change the name of my widget  its will be help

<widget left="0" top="0" config="widgets/FeatureTooltip/FeatureTooltipROBERT.xml" url="widgets/FeatureTooltip/FeatureTooltipWidget.swf"/>

<layer>
            <name>scan data</name>
            <fields>STATE</fields>
            <datefields></datefields>
            <dateformat>MM/DD/YYYY</dateformat>
</layer>
Please send me the file you make to obtain the picture in your anwserd
0 Kudos
GilbertLasnier
Regular Contributor
Gilbert,

   Yes the widget will work with your data once you get it configured correctly.

[ATTACH=CONFIG]12596[/ATTACH]


Helo I send you my 2 files the config and the tool tips IN THE ATTACHEMENT
0 Kudos