Select to view content in your preferred language

Dynamic Legend picture fill hatch symbology

1546
20
12-08-2010 07:22 PM
IanHamilton
New Contributor
Hi , Has any one managed to get the dynamic legend widget the show these types of legend colours.
I can only get a solid fill colour no matter what I publish?

Or is there an alternative legend I cuold use?

Thanks,
Tags (2)
0 Kudos
20 Replies
WallaceBezerra
New Contributor II
I'm using the SOAP API to fetch all the hatch symbology. They come as an ByteArray and you can set the source property of a spark image control to show them on screen.

If you need a detailed explanation, let me know.
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
Ian,

   I will test my dynamic legend against all possible symbol type and create a map service that demo all that work and details the ones that do not because of REST Endpoint limitations.
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
Ian,

   So it looks like even with ArcGIS Server SP1 the REST Endpoint is still having issues with Polygons:

  1. Gradient Fill Symbols

  2. Marker Fill Symbols

  3. Line Fill Symbols

  4. Anything Composite


Lines:

  1. Hash Line Symbol

  2. Picture Line Symbol

  3. Marker Line Symbol

  4. Anything Composite


What the dynamic legend uses is the drawingInfo from the REST Endpoint and that is where it is having issues.

All of this is actually fixed in SP1 if you use the new legend endpoint like this one
http://gis.calhouncounty.org/ArcGIS/rest/services/Symbols/MapServer/legend

But I will have to re-write the dynamic legend to use this new feature and then of course require SP1
0 Kudos
IanHamilton
New Contributor
Thanks,

I'll await the result of your endeavours!
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
0 Kudos
AshleyOwens
New Contributor II
Robert, can you repost the link to the updated dynamic legend code? That link was broken for me. This widget is great! The only thing I'm having trouble with is hatched polygons showing as solid, so I'd love to get the updated code.  Thanks!
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
Ashley,

   All you need to do is check the code gallery.

http://www.arcgis.com/home/item.html?id=f60406b9f52340d59eb557bf64136af6
0 Kudos
AshleyOwens
New Contributor II
Robert,
That's the version I'm currently using - does it have the hatched polygon fix? Mine are still showing as solid.
Thanks,
Ashley
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
Ashley,

   Do you have ArcGIS Server 10 SP1 or greater?
0 Kudos