Select to view content in your preferred language

can only 'see' layer when it's type dynamic.  why's that?

1941
9
12-28-2012 12:45 PM
SteveNelson
Frequent Contributor
Flex Viewer 3.0
Running on ArcGIS 10

Hi everyone, sorry for this newbie question but I'm completely stumped - it's obviously something fundamental that I'm forgetting or not grasping.

I have a Parcel polygon layer in SDE.  In my MXD I have created a successful relate and created a service in ArcServer.  When creating the service I specified a map service as well as a feature service.

In my flex viewer, no matter what I try I can't get the layer to display unless I set the Type = "dynamic".
When I set it to feature it just doesn't draw.
What am I doing wrong?
This works:
<layer label="Parcels" type="dynamic" visible="true" alpha="1.0"
                   popupconfig="popups/PopUp_Fires.xml"
                   url="http://maps/ArcGIS/rest/services/BaseData/Parcels/MapServer"/>

But this doesn't:
<layer label="Parcels" type="feature" visible="true" alpha="1.0"
                   popupconfig="popups/PopUp_Fires.xml"
                   url="http://maps/ArcGIS/rest/services/BaseData/Parcels/FeatureServer/0"/>
**It appears the layer is added to the viewer, I can see it in the "More..." list, and I can 'Zoom to' it.  however the polygons just aren't there??

I'm trying to get the feature type to work so that I can use Robert's InfoRelate widget....
Thank you for any guidance....I've been working on this for 5-6 hours now but can't see what I'm doing wrong.
Steve
Tags (2)
0 Kudos
9 Replies
RhettZufelt
MVP Notable Contributor
Flex Viewer 3.0 
Running on ArcGIS 10 

Hi everyone, sorry for this newbie question but I'm completely stumped - it's obviously something fundamental that I'm forgetting or not grasping. 

I have a Parcel polygon layer in SDE. In my MXD I have created a successful relate and created a service in ArcServer. When creating the service I specified a map service as well as a feature service. 

In my flex viewer, no matter what I try I can't get the layer to display unless I set the Type = "dynamic". 
When I set it to feature it just doesn't draw. 
What am I doing wrong? 
This works: 
<layer label="Parcels" type="dynamic" visible="true" alpha="1.0" 
popupconfig="popups/PopUp_Fires.xml" 
url="http://maps/ArcGIS/rest/services/BaseData/Parcels/MapServer"/> 

But this doesn't: 
<layer label="Parcels" type="feature" visible="true" alpha="1.0" 
popupconfig="popups/PopUp_Fires.xml" 
url="http://maps/ArcGIS/rest/services/BaseData/Parcels/  MapServer/0"/> 
**It appears the layer is added to the viewer, I can see it in the "More..." list, and I can 'Zoom to' it. however the polygons just aren't there?? 

I'm trying to get the feature type to work so that I can use Robert's InfoRelate widget.... 
Thank you for any guidance....I've been working on this for 5-6 hours now but can't see what I'm doing wrong. 
Steve


Not sure if this helps as I am not where I can test, but try the change in red above. The infoRelate widget doesn't require a featureservice, just that you load it as type="feature".

R_
0 Kudos
SteveNelson
Frequent Contributor
hi R_, thanks for the note.
I did try that, and still same issue - no draw.  It will only draw when I use dynamic as the type....
Any onther suggestion GREATLY appreciated.
This was all working nicely for the past few months.  Now it's just not working for me.

**An important side note, out IT tech tried to upgrade the server to .NET 4.0, that is what crashed all my applications.  She reverted back to the original .NET and all my flex web apps are back working, except for this layer...so frustrating.

Happy New Year!
0 Kudos
SteveNelson
Frequent Contributor
Here's what I have in my code now - service is readily available, but in my flex viewer, the layer is checked on, but nothing to draw.
And most inportantly, the relate info click doesn't do anything, as there's nothing to click.
Previously this would allow me so show a Property Image as well as link to relate owner details.

<layer label="Parcels" type="feature" visible="true"
            info="widgets/InfoTemplates/AttRelateInfoWinWidget.swf"
            infoconfig="widgets/InfoTemplates/IWT_BanffParcels.xml"
     url="http://maps.tob.int/ArcGIS/rest/services/BaseData/Parcels/MapServer/0"/>

[ATTACH=CONFIG]20347[/ATTACH]
0 Kudos
Asta_KristinOladottir
Occasional Contributor
Hi hi,
I just want to say I am having the same problem. I have ArcGIS viewer for flex 3.0 and ArcGIS server 10.1. It worked before i upgraded my ArcGIS viewer to 3.1 but had to go back to 3.0 because of some projection issues.
I hope somebody can help us.
0 Kudos
LanceSingleton
Occasional Contributor
3.1 is having a variety of projection problems especially when you use custom tiling schemes (or mixing cache and dynamic services with yours or ESRI basemaps).

Here is my issue:
#NIM087762  Dynamic services will not display in Flex Viewer 3.1 applications when the cached  basemap is using a custom tiling scheme.
0 Kudos
SarthakDatt
Frequent Contributor
Can you try setting wraparound180="false" on the map tag.
0 Kudos
Asta_KristinOladottir
Occasional Contributor
I am still not able to see the tiled layers in my web application but when i use the print pdf function the tiled layers (operational layers: placenames (örnefni) and hillshade (hlíðaskygging)) appear on the pdf. 

wraparound180 is set to false, I am using arcgis viewer for flex 3.0 and I have 10.1 server

http://gis.lmi.is/is50v/
0 Kudos
DasaPaddock
Esri Regular Contributor
Asta,

Your basemap layer is dynamic so the Map doesn't have any LODs. tiled layers will only display if the map's scale matches a cached scale in the layer. You can force the map to only go to compatible scales by adding LODs in the config.

See lods example at:
http://resources.arcgis.com/en/help/flex-viewer/concepts/index.html#/Main_configuration_file/01m3000...

You can copy the resolution and scale values from the tile info at:
http://gis.lmi.is/arcgis/rest/services/kort_isn93/ornefni_kort_isn93/MapServer
0 Kudos
Asta_KristinOladottir
Occasional Contributor
Asta,

Your basemap layer is dynamic so the Map doesn't have any LODs. tiled layers will only display if the map's scale matches a cached scale in the layer. You can force the map to only go to compatible scales by adding LODs in the config.

See lods example at:
http://resources.arcgis.com/en/help/flex-viewer/concepts/index.html#/Main_configuration_file/01m3000...

You can copy the resolution and scale values from the tile info at:
http://gis.lmi.is/arcgis/rest/services/kort_isn93/ornefni_kort_isn93/MapServer


Thank you very much, this helped me allot and now every thing is coming together. Just some minor improvemetnts left.
0 Kudos