--> Unexpected Bad JSON string for Id: XXXXXX
Apart from the console output, are you seeing any other issues when getting your buffered image from the symbol dictionary?
I guess I'm also interested why you extract the buffered image from the symbol dictionary and add that as a picture marker graphic? This isn't the way we indended these graphics to be added to the map. Your method will work, but the message processor is how we had intended these items to be displayed:
- The purpose of the getSymbolImage method on the symbol dictionary is to make a picker or a swatch
- You will need to do your own labelling if you don't use the message processor
- If you display lots of images which are the same you will use more system resources than if you had chosen to display via the message processor. We've put lots of effort into optimising the message processor for displaying 1000s of items.
- You won't be able to display anything other than point symbols. Line and area symbol types will not work using your method. I think these are what you call your tactical graphics.
If you need any help with using the messge processor then feel free to ask. We've got a message processor example in our sample application which you can take a look at.