I want to make a AGSGraphic with a image and a text. I found that AGSLabelDefinition can do it.Now I want to know how to use it to do it.And can I have a demo about this,especially about the json used for AGSLabelDefinition.
The `AGSLabelDefinition` is for displaying label for a `feature` or `graphic` and not creating `AGSGraphic` with a image and a text. Could you please clarify you are interested in use of `AGSLabelDefinition` to display labels or creating `AGSGraphic` with a image and a text?
If you want to create `AGSGraphic` with a image and a text. Here are steps you should follow.
- Create `AGSPictureMarkerSymbol` with an `image`.
- Create `AGSTextSymbol` with `text`
- Create `AGSCompositeSymbol` and add `AGSPictureMarkerSymbol`, `AGSTextSymbol` to it.
- Create `AGSGraphic` with `Geometry` and `AGSCompositeSymbol`
Hope this helps!
Retrieving data ...