Select to view content in your preferred language

Create legend using Cairngorm, Java, and agsjws?

631
1
08-28-2010 02:49 PM
TyroneLigon
Deactivated User
Before I travel down this rabbit hole, thought I'd bounce this idea off the Flex gurus...

The ArcGIS Server Java Web Service API lets you write Java code to access resources on the map server.  One of the resources is the legend information for a particular map service. So, I was thinking the following:

1) Write a Java class to get the legend information through agsjws and put the info (map layer name and legend patch URL) in an array

2) Using Cairngorm and a remote object in the Flex client, send the map service name to the Java back end

3) The java class returns the array to the Flex client

4) The map layer and legend swatch is rendered in a panel or title window

Am I crazy, or does somebody think this will work?

Thanks...
Tags (2)
0 Kudos
1 Reply
RobertScheitlin__GISP
MVP Emeritus
Tyrone,

    Yep definitely doable. I did this in .Net a long time ago. I don't know Java but I know you should be able to if I could do it in .Net

http://forums.esri.com/thread.asp?c=158&f=2421&t=299116&mc=137#934254
0 Kudos