Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Is there a GroupRenderer or similar functionality in ArcGIS for JavaScript?

What I would like to do is to show PictureMarkers with a label showing an attribute on the Graphics object.

share|improve this question
up vote 3 down vote accepted

The unique values render does compound values If you have a limited number of label values, I would recommend just constructing new symbol icons for each unique combination of picture marker and label. If you have a wide variety of labels, then try rendering the layer twice. First with a text symbol then next with a picture marker symbol. Using the different position properties on the text symbol, you should be able to closely align with the picture marker.

But, it will not be perfect control. The first strategy of creating new icons is going to give you the best control on appearance even if it takes a while.

share|improve this answer

No, there isn't a compound renderer in the JSAPI. Furthermore, there would also have to be a compound symbol as well (and the API would have to know to render all child symbols to the GraphicsLayer).

share|improve this answer
Seems like the only way is to duplicate Graphics objects or Graphics layers.. It doesn't feel right though... – MathiasWestin Oct 22 '11 at 13:22

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.