Select to view content in your preferred language

Dynamic Rest Legend in ArcGIS Server 10 and Flex API 1.3

4841
28
08-13-2010 07:26 AM
JasonHancheruk
Emerging Contributor
I just upgraded ArcGIS Server to version 10 from 9.3.1. When I open the Flex page through the browser, instead of the dynamic legend loading, the wait for legend creation just keeps spinning.

Is there a way to fix this problem?
Tags (2)
0 Kudos
28 Replies
RobertScheitlin__GISP
MVP Emeritus
Jason,

   The whole ASP.net webservice was built using 9.3 server so a new web service would have to created for 10. I'll have to see what I can do when I get some time.
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
Jason,

   I forgot I had already done this work. In the zip is also an update to the liveMapsWidget.mxml code that you may want, it is for when you turn off sub layers of a map service in the TOC those layers are turned off in the legend also.
0 Kudos
JasonHancheruk
Emerging Contributor
It blows my mind at how well you know this stuff.

Thanks.
0 Kudos
JasonHancheruk
Emerging Contributor
Hi Robert

I have been trying to get your new Rest Legend to work and I keep running into the same problem. Every time the Legend tries to load I get the same error. Please see the attached jpeg.

Thanks,
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
Jason,

   Open a web browser and test if the web service is doing what it is suppose to. So on the ArcGIS Server machine that you ran the setup on type "http://localhost/restLegend/restLegend.asmx" and then click on generateLegends and type in some default values like:

soapUrl:   http://services.arcgisonline.com/ArcGIS/services/Demographics/ESRI_Diversity_US_2D/MapServer
dpi:  96
pWidth:  20
pHeight:  20
serviceName:  Test

That should return a XML result.
0 Kudos
shafitrumboo
Occasional Contributor
@Robert
I am not able to extract the file. it shows file is damaged
0 Kudos
JasonHancheruk
Emerging Contributor
It does return the XML with all of the information.

Hopefully, the attached JPEG works this time.
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
Jason,

   Can you attach your LiveMapsWidget.mxml?
0 Kudos
JasonHancheruk
Emerging Contributor
Attached is my LiveMapsWidget.

I have changed my transparency slider, would this cause a problem for the legend generation?

Thanks,
0 Kudos