Select to view content in your preferred language

Feature Layer Tips (rscheitlin) configuration error

3976
27
08-09-2011 08:30 AM
BillDickinson
Emerging Contributor
I am using Rob Scheitlin's Feature Layer Tips Flex widget and I am having some problems.

I set up the feature layers as suggested, but when I uncomment the main widget line in config.xml the application never fully loads. The Layer widget never fully loads either, so I think it is getting caught up with getting the right info out of the map service. If I comment out the Feature Layer Tips widget line then the application runs fine, so I know it is this widget that is causing the problems.

Here's the widget line:

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


I've triple checked that the paths are correct in my local directory structure. I'm attaching it to the following layer:

<layer label="FO Locations" type="feature" visible="true" alpha="1" url="http://50.56.25.234/arcgis/rest/services/serviceDelivery/MapServer/0"/>


You can check out the Map Service to see what the layer is like. It is a point layer with some 1300 points in it. I bumped up the max return features on the map service to 1500 just in case it was hitting the 1000 default setting. I also figured it might be the number of points, so I tried this layer which has only about a dozen:

<layer label="Region Labels" type="feature" visible="true" alpha="1" url="http://50.56.25.234/arcgis/rest/services/serviceDelivery/MapServer/1"/>


I'm using ArcGIS Server 10.1 with the FlexViewer 2.4. Any clues on what I am doing wrong would be appreciated (from anyone). 😉

Thanks. Bill
Tags (2)
0 Kudos
27 Replies
RobertScheitlin__GISP
MVP Emeritus
Bill,

   That and the fact that you have a PopUp configured for this layer already. The FeatureTooltipWidget was developed before esri gave use the ability to do essentially the same thing with PopUps. As both my widget and their popups are trying to listen for mouse events this could be a significant issue. I would stick with esri's popups.
0 Kudos
BillDickinson
Emerging Contributor
Okay. Thanks for the help today. 😉
0 Kudos
PetrTrefil
Deactivated User
Hi,

I tryed widget too, but I have problem, it doesn´t work.
When I set "type=feature" the layer is not visible in flex viewer.
Maptips are not displayed.

I tryed PopUp from ESRI, but it is displayed only after map klik on feature.
Don´t you know how to set popup window to display immediately when mouse cursor stop on feature ?
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
Petr,

I tryed widget too, but I have problem, it doesn´t work.
When I set "type=feature" the layer is not visible in flex viewer.
Maptips are not displayed.
Are you specifying a specific layer of the map service when you switch to type="feature"? Like this:

<layer label="Fires" type="feature" visible="false" alpha="1.0"
                   popupconfig="popups/PopUp_Fires.xml"
                   url="http://sampleserver3.arcgisonline.com/ArcGIS/rest/services/Fire/Sheep/FeatureServer/0"/>


Have you configured your layer in the FeatureTooltipWidget.xml?
0 Kudos
PetrTrefil
Deactivated User
Petr,

Are you specifying a specific layer of the map service when you switch to type="feature"? Like this:

<layer label="Fires" type="feature" visible="false" alpha="1.0"
                   popupconfig="popups/PopUp_Fires.xml"
                   url="http://sampleserver3.arcgisonline.com/ArcGIS/rest/services/Fire/Sheep/FeatureServer/0"/>


Have you configured your layer in the FeatureTooltipWidget.xml?


Does it mean taht service must be as "feature service" ?
My AGS 9.3.1 doesn´t publish to it.
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
Petr,

    No this does not mean that you have a feature service. Specifying a layer type as feature is not the same as using a feature service. You can use a Flex Viewer layer type of feature and have it pointing to a MapService URL.
0 Kudos
PetrTrefil
Deactivated User
Petr,

    No this does not mean that you have a feature service. Specifying a layer type as feature is not the same as using a feature service. You can use a Flex Viewer layer type of feature and have it pointing to a MapService URL.


Hi,
so I have problem, as I already writed before, when I try to set for example:
<layer label="vrstevnice" type="feature" visible="false" alpha="0.8"
url="http://gishzskv:8399/arcgis/rest/services/vrstevnice/MapServer/0">
<sublayer id="0" popupconfig="popups/PopUp_vrstevnice.xml"/>
</layer>

where is specified layer with number in map service, I see only name of layer in TOC, but this layer is not visible in map. The same way works in my 2.4 FlexViewer layers KML.
Don´t you know where can be problem ? I think it is probably because of AGS 9.3.1. Probably only AGS 10x supports feature and KML type...?...
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
Petr,

   So you next issue is that a layer with type feature is already pointing to a specific layer in the map service to you adding a sublayer child is wrong:

<layer label="vrstevnice" type="feature" visible="true" alpha="0.8" 
url="http://gishzskv:8399/arcgis/rest/services/vrstevnice/MapServer/0" popupconfig="popups/PopUp_vrstevnice.xml"/>
0 Kudos
PetrTrefil
Deactivated User
Petr,

   So you next issue is that a layer with type feature is already pointing to a specific layer in the map service to you adding a sublayer child is wrong:

<layer label="vrstevnice" type="feature" visible="true" alpha="0.8" 
url="http://gishzskv:8399/arcgis/rest/services/vrstevnice/MapServer/0" popupconfig="popups/PopUp_vrstevnice.xml"/>



I understand what You mean, but I have already tryed this combination a wrote the code this way:
<layer label="vrstevnice" type="feature" visible="true" alpha="0.8"
url="http://gishzskv:8399/arcgis/rest/services/vrstevnice/MapServer/0" popupconfig="popups/PopUp_vrstevnice.xml"/>
but the result it the same. Always I write URL with number of layer, or type=feature  I get the same result = layer is in TOC but not visible in map. I suppose the problem is in version of AGS (9.3). Maybe in AGS 10 it works, but not in 9.3 ?
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
Petr,

   So what happens if you use this:

<layer label="vrstevnice" type="dynamic" visible="true" alpha="0.8" 
url="http://gishzskv:8399/arcgis/rest/services/vrstevnice/MapServer/0">
<sublayer id="0" popupconfig="popups/PopUp_vrstevnice.xml"/>
</layer>


Do you see your mapservice on the map and specificly does layer 0 draw and have popups working?
0 Kudos