Has anyone tried exporting graphics created in the drawing widget for WAB 1.1 to KMZ or KML?
Any feedback would be wonderful!
You would need to convert the ESRI graphic geometry object into the equivalent KML geometry:
Thanks for the reply Owen
I was hoping to have it run along those lines, but my point of confusion is around the drawbox dijit. It seems all the graphics are added there and not to a graphics layer and I'm not too sure on how the drawbox works, is it like a graphics layer?.
I see, I can inherit the map and get the current graphics layer from the map and then work from there.
The drawBox dijit use a graphic layer.
You can access the graphicLayer in the draw widget with :
Maybe you could add your kmz export functionnality to the non-official eDraw widget
magis-nc/esri-webappbuilder-widget-eDraw · GitHub
This widget has allready a "json export/import" functionnality.
Retrieving data ...