Select to view content in your preferred language

REST service Has No Arrow In Legend Widget

867
1
11-29-2012 07:31 AM
JodiLuostarinen
Occasional Contributor
Hello,

In the flex viewer, I have added dynamic layer urls to connect to an arcserver rest service.  This rest service is published via the internet (someone else's server).  The flex viewer app opens fine with no errors.   However, In the legend widget, the layers do not have the arrow next to them, and do not draw (appear to be connected).  I can see the rest endpoint and the layers underneath it just fine (from the same server where the viewer app is published).

Anybody know how I can determine problem?  Is it network related?  How to isolate the performance through the viewer application, when the rest service url works fine?

Thanks,
Jodi
Tags (2)
0 Kudos
1 Reply
RhettZufelt
MVP Notable Contributor
Not sure what you mean about an "arrow" in the legend widget.

a couple things though, is the server you are connecting to version 10 or greater?  If not, then your data need to be public so it can utilize the esri legend service.

See http://resources.arcgis.com/en/help/flex-viewer/concepts/index.html#/Legend_widget/01m30000003400000... for more info.

Also, often if you can see the REST endpoint in the browser, and not in your flex app, most likely there is not a crossdomain.xml file on the server you are connecting to allowing it.  If you install the debugger version of flash player, you will see the sandbox security violation if this is the case.   (the browser will allow you to load from a server without crossdomain permissions, Flex won't).

R_
0 Kudos