Is it possible to define
operationalLayer as feature (or anything else?) dynamically from json?
We have API on our server which generates JSON as a query result from database (acting as a middleware), I can modify JSON through PHP and I would like to add this to
cmv operationalLayers so I can toggle the layer on/off through
layerControl. Then I need info popup on this layer and custom symbology based on categories.
I don't know how should I approach this - create KML? But the server is not accessible from internet, so it didn't work out. Create CSV and use
csvLayer? Well, it works somehow, but I don't know how to style the layer based on attribute unique values. It looks like
featureLayer is the best approach. According to this example it works on JS API, but I don't know how to implement it in CSV.