Select to view content in your preferred language

composite symbol with textsymbol

1870
1
04-29-2013 02:31 PM
jonsumr
Emerging Contributor
Hi, everyone.
I'm trying to create a compositeSymbol with a simpleLineSymbol and a textSymbol to show some information about the polygon or polyline that the user create. I've already did a compositeSymbol with a pictureMarkerSymbol and TextSymbol together, but I didn't seems to work with a polyline.
Tags (2)
0 Kudos
1 Reply
omega_cancer
Frequent Contributor
Hi, everyone.
I'm trying to create a compositeSymbol with a simpleLineSymbol and a textSymbol to show some information about the polygon or polyline that the user create. I've already did a compositeSymbol with a pictureMarkerSymbol and TextSymbol together, but I didn't seems to work with a polyline.


jonsumr,
As per my understanding it wont work. I am telling you why and how to solve this.
Its straightforward. Look Graphic can have only one geometry - Either Point or Polygon- but cant have both. I forced it with polygon but it was showing (TextSymbol) at every vertex. So What you need to do is to create two graphics(one for line and other for text) and make them listen for each other so that they can respond when one counterpart is clicked, moved, removed or even copied.
This will work and the same is implemented by me a week ago. 🙂
0 Kudos