How do I combine TextSymbol and a picture symbol as we do in Esri Flex API?

3483
3
11-21-2013 02:32 AM
omega_cancer
Occasional Contributor II
I am new to JS API, Is there any way out to create TextSymbol and Picture Symbol at a map point so that they would act as a single symbol when I move and rotate them.

This feature is available in Flex API (compositeSymbol). How can I accomplish the same in JS? Is there any other workout?
Same question is asked by me at http://forums.arcgis.com/threads/85395-Composite-Symbol-like-Esri-Flex-API


Please help
0 Kudos
3 Replies
TracySchloss
Frequent Contributor
I moved from FLEX to JavaScript a couple years ago and I've not seen anything.  If you come up with a substitute, I'd like to know about it.  In FLEX, I used a composite symbol pretty regularly, mostly as a way to highlight a feature when I did a mouse over on a grid row.  I found a workaround for that, but that's not the same as what you're describing.
0 Kudos
BjornSvensson
Esri Regular Contributor
As you've noticed, the Javascript API does not have a direct CompositeSymbol equivalent.

Derek wrote up some alternative at http://forums.arcgis.com/threads/51513-Custom-marker-symbols?p=176146&viewfull=1#post176146:
* Use two points, one with the PictureMarkerSymbol and the other with the TextSymbol. If that's hard to do while moving the icon, you could turn off the TextSymbol while moving.
* Use something like Sathya's infoTip sample
0 Kudos
omega_cancer
Occasional Contributor II

I have few hundred picture symbols to show on map each requiring at least three text symbols. I think this would be a costly solution but that is what it is available.

Any news about it in future releases?

0 Kudos