I have only recently discovered ServiceFeatureTable. I had previously been using a ghastly process of http request, and then parsing the json to get features. It was all too hard, but it worked.
ServiceFeatureTable has been a revelation, and I'm converting all my ghastly code to use ServiceFeatureTable. I've got most of the functionality converted, but one area has me baffled. I have a feature which is (say) type 1. How do I get the symbol for type 1? I used to knife and fork my way though a json response, but surely there's a simple primitive to get this? I've seen ShowSymbol, but I can't see how to apply it. What I really need is a way to get all the symbols, by type, from the ServiceFeatureTable.
As to using the symbol in KML - I currently convert the symbol imageData to Base64, save it to a local file, and put a reference to this file in the KML. Is there a better way?
https://services.ga.gov.au/gis/rest/services/NM_Transport_Infrastructure/MapServer/4