Hoppa till huvudinnehållet

Add Custom Graphics to Map

Kommentarer

3 kommentarer

  • Christopher Wiebke

    I figured this out. see attached workflow.

    0
  • Ali VanSickle

    Christopher Wiebke Do you happen to still have this workflow? I am looking to do a similar thing.
    I can't see it attached.
    Thanks!

    0
  • Christopher Wiebke

    Don't see a way to upload a file, so here is the json:

     

    {"components":[{"id":2,"steps":[{"id":3,"inputs":{},"position":"0,20","purpose":"start","title":"Start","transitions":[{"id":363,"inputs":{},"position":"90,80 90,110","sourceConnector":"bottom","target":{"id":38},"targetConnector":"top"}]},{"action":"gcx:wf:forms:form:DisplayForm","id":38,"inputs":{"form":{"accessors":[],"code":"resources.forms[values.id]","values":{"id":34}}},"name":"pointOrLineForm","position":"-30,110","title":"Display Form","transitions":[{"id":112,"inputs":{},"position":"90,230 90,260","sourceConnector":"bottom","target":{"id":111}}]},{"action":"gcx:wf:core::If","id":40,"inputs":{"condition":{"accessors":["$pointOrLineForm"],"annotations":[{"count":16,"index":0,"kind":"idref"}],"code":"$pointOrLineForm.result == 'single'","source":"$pointOrLineForm.result == 'single'"}},"position":"30,540","title":"If","transitions":[{"branch":"true","id":48,"inputs":{},"position":"30,570 -110,570 -110,610","sourceConnector":"left","target":{"id":42},"targetConnector":"top"},{"branch":"false","id":55,"inputs":{},"position":"150,570 300,570 300,620","sourceConnector":"right","target":{"id":54},"targetConnector":"top"}]},{"action":"gcx:wf:forms:form:DisplayForm","id":42,"inputs":{"form":{"accessors":[],"code":"resources.forms[values.id]","values":{"id":36}}},"name":"singlePointForm","position":"-230,610","title":"Display Form"},{"action":"gcx:wf:core::CreateValue","description":"Create an intermediate value to control exiting the Loop activity","id":54,"inputs":{"expression":{"accessors":[],"code":"false","source":"false"}},"name":"exitLoopValue","position":"180,620","title":"Create Value","transitions":[{"id":96,"inputs":{},"position":"300,730 300,760","sourceConnector":"bottom","target":{"id":95}}]},{"action":"gcx:wf:core:loop:Loop","id":56,"inputs":{"exit":{"accessors":["$exitLoopValue"],"annotations":[{"count":14,"index":0,"kind":"idref"}],"code":"$exitLoopValue.result","source":"$exitLoopValue.result"}},"name":"loop1","position":"180,870","title":"Loop","transitions":[{"id":521,"inputs":{},"position":"300,990 300,1030","sourceConnector":"bottom","target":{"id":518},"targetConnector":"top"}]},{"action":"gcx:wf:core::CreateValue","id":95,"inputs":{"expression":{"accessors":[],"annotations":[],"code":"[]","source":"[]"}},"name":"geomList","position":"180,760","title":"Create Value","transitions":[{"id":97,"inputs":{},"position":"300,830 300,870","sourceConnector":"bottom","target":{"id":56},"targetConnector":"top"}]},{"action":"gcx:wf:arcgis::SymbolFromJson","description":"Create a SimpleMarkerSymbol object from JSON","id":111,"inputs":{"json":"{\n    \"color\": [\n        255,\n        255,\n        0,\n        255\n    ],\n    \"size\": 6,\n    \"angle\": 0,\n    \"xoffset\": 0,\n    \"yoffset\": 0,\n    \"type\": \"esriSMS\",\n    \"style\": \"esriSMSCircle\",\n    \"outline\": {\n        \"color\": [\n            0,\n            0,\n            0,\n            0\n        ],\n        \"width\": 1.5,\n        \"type\": \"esriSLS\",\n        \"style\": \"esriSLSSolid\"\n    }\n}"},"name":"ptSymbolsFromJson","position":"-30,260","title":"Point Symbol From JSON","transitions":[{"id":203,"inputs":{},"position":"90,370 90,400","sourceConnector":"bottom","target":{"id":202}}]},{"action":"gcx:wf:arcgis::SymbolFromJson","description":"Create a SimpleMarkerSymbol object from JSON","id":202,"inputs":{"json":{"accessors":[],"annotations":[],"code":"{\n    \"color\": [\n        255,\n        255,\n        0,\n        255\n    ],\n    \"width\": 1.5,\n    \"type\": \"esriSLS\",\n    \"style\": \"esriSLSSolid\"\n}","source":"{\n    \"color\": [\n        255,\n        255,\n        0,\n        255\n    ],\n    \"width\": 1.5,\n    \"type\": \"esriSLS\",\n    \"style\": \"esriSLSSolid\"\n}"}},"name":"lineJSON","position":"-30,400","title":"Line Symbol From JSON","transitions":[{"id":144,"inputs":{},"position":"90,510 90,540","sourceConnector":"bottom","target":{"id":40},"targetConnector":"top"}]},{"action":"gcx:wf:wab::OpenWidget","id":329,"inputs":{"widgetId":"widgets_Print_Widget_39"},"position":"180,1180","title":"Open Widget","transitions":[{"id":337,"inputs":{},"position":"300,1210 300,1250","sourceConnector":"bottom","target":{"id":336},"targetConnector":"top"}]},{"action":"gcx:wf:core::Exit","id":336,"inputs":{},"position":"240,1250","title":"Exit"},{"action":"gcx:wf:core::Container","description":"commands to activate snapping (this has not been implemented in WAB)","id":358,"inputs":{},"position":"-390,70","title":"Container"},{"action":"gcx:wf:core::Container","id":518,"inputs":{},"name":"addLastCoordContainer","position":"180,1030","title":"Container","transitions":[{"id":330,"inputs":{},"position":"300,1150 300,1180","sourceConnector":"bottom","target":{"id":329}}]}]},{"id":6,"steps":[{"id":8,"inputs":{},"position":"0,0","purpose":"start","title":"Event","transitions":[{"id":12,"inputs":{},"position":"90,60 90,110","sourceConnector":"bottom","target":{"id":10},"targetConnector":"top"}]},{"action":"gcx:wf:core::Container","id":10,"inputs":{},"name":"pointGraphic","position":"-30,110","title":"Point Graphic"}],"title":"change-singlePtGeomPicker"},{"id":14,"steps":[{"id":16,"inputs":{},"position":"0,0","purpose":"start","title":"Container","transitions":[{"id":108,"inputs":{},"position":"90,60 90,90","sourceConnector":"bottom","target":{"id":20},"targetConnector":"top"}]},{"action":"gcx:wf:arcgis::CreateGraphic","description":"Create an esri.Graphic object by combining a geometry (esri.Point) and a symbol (esri.Symbol)","id":20,"inputs":{"geometry":{"accessors":["$singlePointForm"],"annotations":[{"count":16,"index":0,"kind":"idref"}],"code":"$singlePointForm.state.singlePtGeomPicker.value.geometry[0]","source":"$singlePointForm.state.singlePtGeomPicker.value.geometry[0]"},"symbol":{"accessors":["$ptSymbolsFromJson"],"annotations":[{"count":18,"index":0,"kind":"idref"}],"code":"$ptSymbolsFromJson.symbol","source":"$ptSymbolsFromJson.symbol"}},"name":"createPointGraphicSingle","position":"-30,90","title":"Create Feature","transitions":[{"id":30,"inputs":{},"position":"90,240 90,270","sourceConnector":"bottom","target":{"id":22}}]},{"action":"gcx:wf:arcgis::AddGraphicsLayerFeatures","description":"","id":22,"inputs":{"features":{"accessors":["$createPointGraphicSingle"],"annotations":[{"count":25,"index":0,"kind":"idref"}],"code":"$createPointGraphicSingle.feature","source":"$createPointGraphicSingle.feature"},"layerId":"startPointGraphic"},"name":"addStartPtGraphicslayer","position":"-30,270","title":"Add Graphics Layer Features","transitions":[{"id":265,"inputs":{},"position":"90,340 90,258 90,258 90,360","sourceConnector":"bottom","target":{"id":167},"targetConnector":"top"}]},{"action":"gcx:wf:arcgis::SymbolFromJson","id":147,"inputs":{"json":{"accessors":["$xLocationValue"],"annotations":[{"count":15,"index":0,"kind":"idref"}],"code":"$xLocationValue.result","source":"$xLocationValue.result"}},"name":"xFromJson","position":"-30,640","title":"Get Symbol From JSON","transitions":[{"id":177,"inputs":{},"position":"90,710 90,628 90,628 90,730","sourceConnector":"bottom","target":{"id":159},"targetConnector":"top"}]},{"action":"gcx:wf:arcgis::AddGraphicsLayerFeatures","id":149,"inputs":{"features":{"accessors":["$xGraphicFeature"],"annotations":[{"count":16,"index":0,"kind":"idref"}],"code":"$xGraphicFeature.feature","source":"$xGraphicFeature.feature"},"layerId":"xyLocation"},"name":"addXGraphics","position":"-30,820","title":"Add Graphics","transitions":[{"id":278,"inputs":{},"position":"90,890 90,808 90,808 90,910","sourceConnector":"bottom","target":{"id":277},"targetConnector":"top"}]},{"action":"gcx:wf:core::CreateValue","id":152,"inputs":{"expression":{"accessors":["$fixedX"],"annotations":[{"count":7,"index":379,"kind":"idref"}],"code":"{\n    \"type\": \"esriTS\",\n    \"color\": [255, 255, 0, 255],\n    \"haloColor\": [0, 0, 0, 255],\n    \"haloSize\": 2,\n    \"haloColor\": [0, 0, 0, 255],\n    \"horizontalAlignment\": \"right\",\n    \"verticalAlignment\": \"middle\",\n    \"xoffset\": -5,\n    \"yoffset\": +5,\n    \"font\": {\n        \"family\": \"calibri\",\n        \"size\": 10,\n        \"style\": \"normal\",\n        \"weight\": \"bold\",\n        \"decoration\": \"none\"\n    },\n    \"text\": \"X: \" + $fixedX.result\n}","source":"{\n  \"type\": \"esriTS\",\n  \"color\": [255,255,0,255],\n  \"haloColor\": [0,0,0,255],\n  \"haloSize\": 2,\n  \"haloColor\": [0,0,0,255],\n  \"horizontalAlignment\" : \"right\",\n  \"verticalAlignment\": \"middle\",\n  \"xoffset\": -5,\n  \"yoffset\": +5,\n  \n  \"font\": {\n    \"family\" : \"calibri\",\n    \"size\" : 10,\n    \"style\" : \"normal\",\n    \"weight\" : \"bold\",\n    \"decoration\" : \"none\"\n  },\n  \"text\" :\"X: \" + $fixedX.result\n}"}},"name":"xLocationValue","position":"-30,550","title":"Create Value","transitions":[{"id":264,"inputs":{},"position":"90,620 90,538 90,538 90,640","sourceConnector":"bottom","target":{"id":147},"targetConnector":"top"}]},{"action":"gcx:wf:arcgis::CreateGraphic","id":159,"inputs":{"geometry":{"accessors":["$singlePointForm"],"annotations":[{"count":16,"index":0,"kind":"idref"}],"code":"$singlePointForm.state.singlePtGeomPicker.value.geometry[0]","source":"$singlePointForm.state.singlePtGeomPicker.value.geometry[0]"},"symbol":{"accessors":["$xFromJson"],"annotations":[{"count":10,"index":0,"kind":"idref"}],"code":"$xFromJson.symbol","source":"$xFromJson.symbol"}},"name":"xGraphicFeature","position":"-30,730","title":"Create Feature","transitions":[{"id":161,"inputs":{},"position":"90,800 90,718 90,718 90,820","sourceConnector":"bottom","target":{"id":149},"targetConnector":"top"}]},{"action":"gcx:wf:arcgis::ProjectServiceTask","id":167,"inputs":{"geometry":{"accessors":["$singlePointForm"],"annotations":[{"count":16,"index":0,"kind":"idref"}],"code":"$singlePointForm.state.singlePtGeomPicker.value.geometry[0]","source":"$singlePointForm.state.singlePtGeomPicker.value.geometry[0]"},"outSpatialReference":26852},"name":"singlePtGeomSP","position":"-30,360","title":"Project Geometry","transitions":[{"id":262,"inputs":{},"position":"90,430 90,460","sourceConnector":"bottom","target":{"id":179}}]},{"action":"gcx:wf:core::CreateValue","id":179,"inputs":{"expression":{"accessors":["$singlePtGeomSP"],"annotations":[{"count":15,"index":0,"kind":"idref"}],"code":"$singlePtGeomSP.geometry.x.toFixed(0)","source":"$singlePtGeomSP.geometry.x.toFixed(0)"}},"name":"fixedX","position":"-30,460","title":"Create Value","transitions":[{"id":267,"inputs":{},"position":"90,530 90,448 90,448 90,550","sourceConnector":"bottom","target":{"id":152},"targetConnector":"top"}]},{"action":"gcx:wf:core::CreateValue","id":227,"inputs":{"expression":{"accessors":[],"annotations":[],"code":"[]","source":"[]"}},"name":"xyList","position":"-640,110","title":"Create Value"},{"action":"gcx:wf:core::AddItem","id":234,"inputs":{"collection":{"accessors":["$xyList"],"annotations":[{"count":7,"index":0,"kind":"idref"}],"code":"$xyList.result","source":"$xyList.result"},"item":{"accessors":["$fixedX"],"annotations":[{"count":7,"index":0,"kind":"idref"}],"code":"$fixedX.result","source":"$fixedX.result"}},"position":"-640,210","title":"Add Item"},{"action":"gcx:wf:core::AddItem","id":243,"inputs":{"collection":{"accessors":["$xyList"],"annotations":[{"count":7,"index":0,"kind":"idref"}],"code":"$xyList.result","source":"$xyList.result"},"item":{"accessors":["$fixedY"],"annotations":[{"count":7,"index":0,"kind":"idref"}],"code":"$fixedY.result","source":"$fixedY.result"}},"position":"-640,270","title":"Add Item"},{"action":"gcx:wf:core::CreateValue","id":249,"inputs":{"expression":{"accessors":["$xyList"],"annotations":[{"count":7,"index":0,"kind":"idref"}],"code":"$xyList.result.join(\"\\n\")","source":"$xyList.result.join(\"\\n\")"}},"name":"xyNewLine","position":"-640,340","title":"Create Value"},{"action":"gcx:wf:core::CreateValue","id":277,"inputs":{"expression":{"accessors":["$singlePtGeomSP"],"annotations":[{"count":15,"index":0,"kind":"idref"}],"code":"$singlePtGeomSP.geometry.y.toFixed(0)","source":"$singlePtGeomSP.geometry.y.toFixed(0)"}},"name":"fixedY","position":"-30,910","title":"Create Value","transitions":[{"id":294,"inputs":{},"position":"90,980 90,898 90,898 90,1000","sourceConnector":"bottom","target":{"id":285},"targetConnector":"top"}]},{"action":"gcx:wf:arcgis::SymbolFromJson","id":281,"inputs":{"json":{"accessors":["$yLocationValue"],"annotations":[{"count":15,"index":0,"kind":"idref"}],"code":"$yLocationValue.result","source":"$yLocationValue.result"}},"name":"yFromJson","position":"-30,1090","title":"Get Symbol From JSON","transitions":[{"id":291,"inputs":{},"position":"90,1160 90,1078 90,1078 90,1180","sourceConnector":"bottom","target":{"id":287},"targetConnector":"top"}]},{"action":"gcx:wf:arcgis::AddGraphicsLayerFeatures","id":283,"inputs":{"features":{"accessors":["$yGraphicFeature"],"annotations":[{"count":16,"index":0,"kind":"idref"}],"code":"$yGraphicFeature.feature","source":"$yGraphicFeature.feature"},"layerId":"xyLocation"},"name":"addYGraphics","position":"-30,1270","title":"Add Graphics","transitions":[{"id":341,"inputs":{},"position":"90,1340 90,1370","sourceConnector":"bottom","target":{"id":340},"targetConnector":"top"}]},{"action":"gcx:wf:core::CreateValue","id":285,"inputs":{"expression":{"accessors":["$fixedY"],"annotations":[{"count":7,"index":351,"kind":"idref"}],"code":"{\n    \"type\": \"esriTS\",\n    \"color\": [255, 255, 0, 255],\n    \"haloColor\": [0, 0, 0, 255],\n    \"haloSize\": 2,\n    \"horizontalAlignment\": \"right\",\n    \"verticalAlignment\": \"middle\",\n    \"xoffset\": -5,\n    \"yoffset\": -5,\n    \"font\": {\n        \"family\": \"calibri\",\n        \"size\": 10,\n        \"style\": \"normal\",\n        \"weight\": \"bold\",\n        \"decoration\": \"none\"\n    },\n    \"text\": \"Y: \" + $fixedY.result\n}","source":"{\n  \"type\": \"esriTS\",\n  \"color\": [255,255,0,255],\n  \"haloColor\": [0,0,0,255],\n  \"haloSize\": 2,\n  \"horizontalAlignment\" : \"right\",\n  \"verticalAlignment\": \"middle\",\n  \"xoffset\": -5,\n  \"yoffset\": -5,\n  \n  \"font\": {\n    \"family\" : \"calibri\",\n    \"size\" : 10,\n    \"style\" : \"normal\",\n    \"weight\" : \"bold\",\n    \"decoration\" : \"none\"\n  },\n  \"text\" :\"Y: \" + $fixedY.result\n}"}},"name":"yLocationValue","position":"-30,1000","title":"Create Value","transitions":[{"id":293,"inputs":{},"position":"90,1070 90,988 90,988 90,1090","sourceConnector":"bottom","target":{"id":281},"targetConnector":"top"}]},{"action":"gcx:wf:arcgis::CreateGraphic","id":287,"inputs":{"geometry":{"accessors":["$singlePointForm"],"annotations":[{"count":16,"index":0,"kind":"idref"}],"code":"$singlePointForm.state.singlePtGeomPicker.value.geometry[0]","source":"$singlePointForm.state.singlePtGeomPicker.value.geometry[0]"},"symbol":{"accessors":["$yFromJson"],"annotations":[{"count":10,"index":0,"kind":"idref"}],"code":"$yFromJson.symbol","source":"$yFromJson.symbol"}},"name":"yGraphicFeature","position":"-30,1180","title":"Create Feature","transitions":[{"id":289,"inputs":{},"position":"90,1250 90,1168 90,1168 90,1270","sourceConnector":"bottom","target":{"id":283},"targetConnector":"top"}]},{"action":"gcx:wf:core::Exit","id":331,"inputs":{},"position":"30,1450","title":"Exit"},{"action":"gcx:wf:wab::OpenWidget","id":340,"inputs":{"widgetId":"widgets_Print_Widget_39"},"position":"-30,1370","title":"Open Widget","transitions":[{"id":335,"inputs":{},"position":"90,1400 90,1450","sourceConnector":"bottom","target":{"id":331}}]}]},{"id":57,"steps":[{"id":58,"inputs":{},"position":"0,0","purpose":"start","title":"Loop","transitions":[{"id":529,"inputs":{},"position":"90,60 90,90","sourceConnector":"bottom","target":{"id":528}}]},{"action":"gcx:wf:forms:form:DisplayForm","id":65,"inputs":{"form":{"accessors":[],"code":"resources.forms[values.id]","values":{"id":63}}},"name":"lineForm","position":"-30,260","title":"Display Form","transitions":[{"id":85,"inputs":{},"position":"90,380 90,410","sourceConnector":"bottom","target":{"id":84}}]},{"action":"gcx:wf:core::If","description":"If the user declines to enter another name","id":69,"inputs":{"condition":{"accessors":["$lineForm"],"annotations":[{"count":9,"index":0,"kind":"idref"}],"code":"$lineForm.result === 'exit'","source":"$lineForm.result === 'exit'"}},"position":"-40,720","title":"If","transitions":[{"branch":"true","id":319,"inputs":{},"position":"-40,775 -130,775","sourceConnector":"left","target":{"id":71},"targetConnector":"right"}]},{"action":"gcx:wf:core::Evaluate","description":"Set the intermediate value to true so the Loop activity exits","id":71,"inputs":{"expression":{"accessors":["$exitLoopValue"],"annotations":[{"count":14,"index":0,"kind":"idref"}],"code":"$exitLoopValue.result = true","source":"$exitLoopValue.result = true"}},"name":"evaluateExpression","position":"-370,720","title":"Evaluate Expression"},{"action":"gcx:wf:core::Log","id":75,"inputs":{"message":{"accessors":["$loop1"],"annotations":[{"count":6,"index":22,"kind":"idref"}],"code":"\"The loop pass is : \" + $loop1.pass","source":"`The loop pass is : ${$loop1.pass}`"}},"position":"-30,200","title":"Log","transitions":[{"id":86,"inputs":{},"position":"90,230 90,260","sourceConnector":"bottom","target":{"id":65},"targetConnector":"top"}]},{"action":"gcx:wf:core::Log","id":84,"inputs":{"message":{"accessors":["$lineForm","$lineForm"],"annotations":[{"count":9,"index":28,"kind":"idref"},{"count":9,"index":85,"kind":"idref"}],"code":"\"The display form x,y is: \" + $lineForm.state.vertexGeomPicker.value.geometry[0].x + \", \" + $lineForm.state.vertexGeomPicker.value.geometry[0].y","source":"`The display form x,y is: ${$lineForm.state.vertexGeomPicker.value.geometry[0].x}, ${$lineForm.state.vertexGeomPicker.value.geometry[0].y}`"}},"position":"-30,410","title":"Log","transitions":[{"id":214,"inputs":{},"position":"90,440 90,470","sourceConnector":"bottom","target":{"id":213}}]},{"action":"gcx:wf:core::Log","id":100,"inputs":{"message":{"accessors":["$geomList"],"annotations":[{"count":9,"index":27,"kind":"idref"}],"code":"\"The geomList result is: \" + $geomList.result","source":"`The geomList result is: ${$geomList.result}`"}},"position":"-30,530","title":"Log","transitions":[{"id":106,"inputs":{},"position":"90,560 90,590","sourceConnector":"bottom","target":{"id":105}}]},{"action":"gcx:wf:core::Log","id":105,"inputs":{"message":{"accessors":["$geomList","$geomList"],"annotations":[{"count":9,"index":31,"kind":"idref"},{"count":9,"index":57,"kind":"idref"}],"code":"\"The first geomList x, y is: \" + $geomList.result[0].x + \", \" + $geomList.result[0].y","source":"`The first geomList x, y is: ${$geomList.result[0].x}, ${$geomList.result[0].y}`"}},"position":"-30,590","title":"Log","transitions":[{"id":217,"inputs":{},"position":"90,620 90,650","sourceConnector":"bottom","target":{"id":216}}]},{"action":"gcx:wf:core::AddItem","id":213,"inputs":{"collection":{"accessors":["$geomList"],"annotations":[{"count":9,"index":0,"kind":"idref"}],"code":"$geomList.result","source":"$geomList.result"},"item":{"accessors":["$lineForm"],"annotations":[{"count":9,"index":0,"kind":"idref"}],"code":"$lineForm.state.vertexGeomPicker.value.geometry[0]","source":"$lineForm.state.vertexGeomPicker.value.geometry[0]"}},"position":"-30,470","title":"Add Item","transitions":[{"id":215,"inputs":{},"position":"90,500 90,530","sourceConnector":"bottom","target":{"id":100},"targetConnector":"top"}]},{"action":"gcx:wf:core::Log","id":216,"inputs":{"message":{"accessors":["$geomList","$loop1","$geomList","$loop1"],"annotations":[{"count":9,"index":30,"kind":"idref"},{"count":6,"index":47,"kind":"idref"},{"count":9,"index":66,"kind":"idref"},{"count":6,"index":83,"kind":"idref"}],"code":"\"The last geomList x, y is: \" + $geomList.result[$loop1.pass].x + \", \" + $geomList.result[$loop1.pass].y","source":"`The last geomList x, y is: ${$geomList.result[$loop1.pass].x}, ${$geomList.result[$loop1.pass].y}`\n"}},"position":"-30,650","title":"Log","transitions":[{"id":274,"inputs":{},"position":"90,680 90,700 80,700 80,720","sourceConnector":"bottom","target":{"id":69},"targetConnector":"top"}]},{"action":"gcx:wf:core::CreateValue","id":528,"inputs":{"expression":{"accessors":["$loop1"],"annotations":[{"count":6,"index":0,"kind":"idref"}],"code":"$loop1.pass","source":"$loop1.pass"}},"name":"loopPass","position":"-30,90","title":"Create Value","transitions":[{"id":530,"inputs":{},"position":"90,160 90,200","sourceConnector":"bottom","target":{"id":75},"targetConnector":"top"}]}]},{"id":114,"steps":[{"id":115,"inputs":{},"position":"0,0","purpose":"start","title":"Event","transitions":[{"id":333,"inputs":{},"position":"90,60 90,90","sourceConnector":"bottom","target":{"id":332}}]},{"action":"gcx:wf:arcgis::AddGraphicsLayerFeatures","description":"","id":119,"inputs":{"features":{"accessors":["$firstVertex"],"annotations":[{"count":12,"index":0,"kind":"idref"}],"code":"$firstVertex.feature","source":"$firstVertex.feature"},"layerId":"startPointGraphic"},"name":"addStartPtGraphicslayer1","position":"-30,340","title":"Add Graphics Layer Features","transitions":[{"id":180,"inputs":{},"position":"90,410 90,430 150,430 150,450","sourceConnector":"bottom","target":{"id":175}}]},{"action":"gcx:wf:arcgis::CreateGraphic","description":"Create an esri.Graphic object by combining a geometry (esri.Point) and a symbol (esri.Symbol)","id":121,"inputs":{"geometry":{"accessors":["$lineForm"],"annotations":[{"count":9,"index":0,"kind":"idref"}],"code":"$lineForm.state.vertexGeomPicker.value.geometry[0]","source":"$lineForm.state.vertexGeomPicker.value.geometry[0]"},"symbol":{"accessors":["$ptSymbolsFromJson"],"annotations":[{"count":18,"index":0,"kind":"idref"}],"code":"$ptSymbolsFromJson.symbol","source":"$ptSymbolsFromJson.symbol"}},"name":"firstVertex","position":"-30,160","title":"Create Feature","transitions":[{"id":123,"inputs":{},"position":"90,310 90,340","sourceConnector":"bottom","target":{"id":119},"targetConnector":"top"}]},{"action":"gcx:wf:core::If","id":175,"inputs":{"condition":{"accessors":["$loop1"],"annotations":[{"count":6,"index":0,"kind":"idref"}],"code":"$loop1.pass == 0","source":"$loop1.pass == 0"}},"name":"firstPointIf","position":"30,450","title":"If","transitions":[{"branch":"false","id":181,"inputs":{},"position":"270,495 290,495 290,700 150,700 150,720","sourceConnector":"right","target":{"id":190},"targetConnector":"top"},{"branch":"true","id":187,"inputs":{},"position":"30,495 -60,500","sourceConnector":"left","target":{"id":183},"targetConnector":"right"}]},{"action":"gcx:wf:core::Container","id":183,"inputs":{},"name":"addFirstCoordContainer","position":"-300,440","title":"Container","transitions":[{"id":257,"inputs":{},"position":"-180,560 -180,690 150,690 150,720","sourceConnector":"bottom","target":{"id":190},"targetConnector":"top"}]},{"action":"gcx:wf:core::If","id":190,"inputs":{"condition":{"accessors":["$loop1"],"annotations":[{"count":6,"index":0,"kind":"idref"}],"code":"$loop1.pass > 0","source":"$loop1.pass > 0"}},"name":"notFirstPointIf","position":"30,720","title":"If","transitions":[{"branch":"true","id":198,"inputs":{},"position":"30,765 -60,770","sourceConnector":"left","target":{"id":192}}]},{"action":"gcx:wf:core::Container","id":192,"inputs":{},"name":"lineGraphicsContainer","position":"-300,710","title":"Line Graphics Container"},{"action":"gcx:wf:forms::ShowFormElement","id":332,"inputs":{"elementName":"footer","form":{"accessors":["$$form"],"annotations":[{"count":6,"index":0,"kind":"idref"}],"code":"$$form","source":"$$form"}},"position":"-30,90","title":"Show Form Element","transitions":[{"id":334,"inputs":{},"position":"90,120 90,160","sourceConnector":"bottom","target":{"id":121},"targetConnector":"top"}]}],"title":"change-vertexGeomPicker"},{"id":162,"steps":[{"id":164,"inputs":{},"position":"0,0","purpose":"start","title":"Container","transitions":[{"id":182,"inputs":{},"position":"90,60 90,90","sourceConnector":"bottom","target":{"id":168}}]},{"action":"gcx:wf:arcgis::GeometryFromJson","id":166,"inputs":{"json":{"accessors":["$geomList","$loop1","$geomList","$loop1","$lineForm","$lineForm"],"annotations":[{"count":9,"index":17,"kind":"idref"},{"count":6,"index":34,"kind":"idref"},{"count":9,"index":53,"kind":"idref"},{"count":6,"index":70,"kind":"idref"},{"count":9,"index":92,"kind":"idref"},{"count":9,"index":145,"kind":"idref"}],"code":"{\n    \"paths\": [[[$geomList.result[$loop1.pass - 1].x, $geomList.result[$loop1.pass - 1].y], [$lineForm.state.vertexGeomPicker.value.geometry[0].x, $lineForm.state.vertexGeomPicker.value.geometry[0].y]]],\n    \"spatialReference\": { \"wkid\": 102100 }\n}","source":"{\n    \"paths\":[[[$geomList.result[$loop1.pass - 1].x,$geomList.result[$loop1.pass - 1].y], [$lineForm.state.vertexGeomPicker.value.geometry[0].x,$lineForm.state.vertexGeomPicker.value.geometry[0].y]]],\n    \"spatialReference\":{\"wkid\":102100}\n}"}},"name":"lineGeometry","position":"-30,190","title":"Get Geometry From JSON","transitions":[{"id":178,"inputs":{},"position":"90,260 90,290","sourceConnector":"bottom","target":{"id":176}}]},{"action":"gcx:wf:arcgis::GetViewExtent","id":168,"inputs":{},"name":"mapExtent","position":"-30,90","title":"Get Map Extent","transitions":[{"id":221,"inputs":{},"position":"90,160 90,190","sourceConnector":"bottom","target":{"id":166},"targetConnector":"top"}]},{"action":"gcx:wf:arcgis::AddGraphicsLayerFeatures","description":"","id":170,"inputs":{"features":{"accessors":["$linefeature2"],"annotations":[{"count":13,"index":0,"kind":"idref"}],"code":"$linefeature2.feature","source":"$linefeature2.feature"},"layerId":"theLine"},"name":"addLinegraphicslayer","position":"-30,570","title":"Add Graphics Layer Features","transitions":[{"id":225,"inputs":{},"position":"90,640 90,680","sourceConnector":"bottom","target":{"id":224}}]},{"action":"gcx:wf:arcgis::CreateGraphic","description":"Create an esri.Graphic object by combining a geometry (esri.Point) and a symbol (esri.Symbol)","id":172,"inputs":{"geometry":{"accessors":["$projectLineGeometry"],"annotations":[{"count":20,"index":0,"kind":"idref"}],"code":"$projectLineGeometry.geometry","source":"$projectLineGeometry.geometry"},"symbol":{"accessors":["$lineJSON"],"annotations":[{"count":9,"index":0,"kind":"idref"}],"code":"$lineJSON.symbol","source":"$lineJSON.symbol"}},"name":"linefeature2","position":"-30,390","title":"Create Feature","transitions":[{"id":188,"inputs":{},"position":"90,540 90,570","sourceConnector":"bottom","target":{"id":170},"targetConnector":"top"}]},{"action":"gcx:wf:arcgis::ProjectServiceTask","id":176,"inputs":{"geometry":{"accessors":["$lineGeometry"],"annotations":[{"count":13,"index":0,"kind":"idref"}],"code":"$lineGeometry.geometry","source":"$lineGeometry.geometry"},"outSpatialReference":{"accessors":["$mapExtent"],"annotations":[{"count":10,"index":0,"kind":"idref"}],"code":"$mapExtent.extent.spatialReference","source":"$mapExtent.extent.spatialReference"}},"name":"projectLineGeometry","position":"-30,290","title":"Project Geometry","transitions":[{"id":199,"inputs":{},"position":"90,360 90,390","sourceConnector":"bottom","target":{"id":172},"targetConnector":"top"}]},{"action":"gcx:wf:arcgis::ProjectServiceTask","id":224,"inputs":{"geometry":{"accessors":["$geomList","$loop1"],"annotations":[{"count":9,"index":0,"kind":"idref"},{"count":6,"index":17,"kind":"idref"}],"code":"$geomList.result[$loop1.pass - 1]","source":"$geomList.result[$loop1.pass - 1]"},"outSpatialReference":26852},"name":"projectLastGeometrySP","position":"-30,680","title":"Project Geometry","transitions":[{"id":229,"inputs":{},"position":"90,750 90,780","sourceConnector":"bottom","target":{"id":228}}]},{"action":"gcx:wf:core::Log","id":228,"inputs":{"message":{"accessors":["$projectLastGeometrySP","$projectLastGeometrySP"],"annotations":[{"count":22,"index":46,"kind":"idref"},{"count":22,"index":84,"kind":"idref"}],"code":"\"The last geomList item stateplane x, y is: \" + $projectLastGeometrySP.geometry.x + \", \" + $projectLastGeometrySP.geometry.y","source":"`The last geomList item stateplane x, y is: ${$projectLastGeometrySP.geometry.x}, ${$projectLastGeometrySP.geometry.y}`\n"}},"position":"-30,780","title":"Log","transitions":[{"id":233,"inputs":{},"position":"90,810 90,840","sourceConnector":"bottom","target":{"id":232}}]},{"action":"gcx:wf:arcgis::ProjectServiceTask","id":232,"inputs":{"geometry":{"accessors":["$lineForm"],"annotations":[{"count":9,"index":0,"kind":"idref"}],"code":"$lineForm.state.vertexGeomPicker.value.geometry[0]","source":"$lineForm.state.vertexGeomPicker.value.geometry[0]"},"outSpatialReference":26852},"name":"projectCurrentPoint","position":"-30,840","title":"Project Geometry","transitions":[{"id":237,"inputs":{},"position":"90,910 90,940","sourceConnector":"bottom","target":{"id":236}}]},{"action":"gcx:wf:core::Log","id":236,"inputs":{"message":{"accessors":["$projectCurrentPoint","$projectCurrentPoint"],"annotations":[{"count":20,"index":46,"kind":"idref"},{"count":20,"index":82,"kind":"idref"}],"code":"\"The current point geom stateplane x, y is: \" + $projectCurrentPoint.geometry.x + \", \" + $projectCurrentPoint.geometry.y","source":"`The current point geom stateplane x, y is: ${$projectCurrentPoint.geometry.x}, ${$projectCurrentPoint.geometry.y}`\n"}},"position":"-30,940","title":"Log","transitions":[{"id":241,"inputs":{},"position":"90,970 90,1000","sourceConnector":"bottom","target":{"id":240}}]},{"action":"gcx:wf:arcgis::DistanceEngineTask","id":240,"inputs":{"geometry1":{"accessors":["$projectLastGeometrySP"],"annotations":[{"count":22,"index":0,"kind":"idref"}],"code":"$projectLastGeometrySP.geometry","source":"$projectLastGeometrySP.geometry"},"geometry2":{"accessors":["$projectCurrentPoint"],"annotations":[{"count":20,"index":0,"kind":"idref"}],"code":"$projectCurrentPoint.geometry","source":"$projectCurrentPoint.geometry"},"unit":"feet"},"name":"distance","position":"-30,1000","title":"Calculate Distance","transitions":[{"id":245,"inputs":{},"position":"90,1070 90,1100","sourceConnector":"bottom","target":{"id":244}}]},{"action":"gcx:wf:core::Log","id":244,"inputs":{"message":{"accessors":["$distance"],"annotations":[{"count":9,"index":29,"kind":"idref"}],"code":"\"The measured distance is: \" + $distance.distance","source":"`The measured distance is: ${$distance.distance}`\n"}},"position":"-30,1100","title":"Log","transitions":[{"id":269,"inputs":{},"position":"90,1130 90,1160","sourceConnector":"bottom","target":{"id":254},"targetConnector":"top"}]},{"action":"gcx:wf:arcgis::GetCentroid","id":248,"inputs":{"geometry":{"accessors":["$linefeature2"],"annotations":[{"count":13,"index":0,"kind":"idref"}],"code":"$linefeature2.feature.geometry","source":"$linefeature2.feature.geometry"}},"name":"lineCentroid2","position":"-30,1460","title":"Get Centroid","transitions":[{"id":272,"inputs":{},"position":"90,1530 90,1560","sourceConnector":"bottom","target":{"id":256},"targetConnector":"top"}]},{"action":"gcx:wf:arcgis::SymbolFromJson","id":250,"inputs":{"json":{"accessors":["$labelFeetValues2"],"annotations":[{"count":17,"index":0,"kind":"idref"}],"code":"$labelFeetValues2.result","source":"$labelFeetValues2.result"}},"name":"distTextSymbol4","position":"-30,1360","title":"Get Symbol From JSON","transitions":[{"id":271,"inputs":{},"position":"90,1430 90,1460","sourceConnector":"bottom","target":{"id":248},"targetConnector":"top"}]},{"action":"gcx:wf:core::CreateValue","id":252,"inputs":{"expression":{"accessors":["$distanceInt"],"annotations":[{"count":12,"index":500,"kind":"idref"}],"code":"{\n    \"type\": \"esriTS\",\n    \"color\": [255, 255, 0, 255],\n    \"backgroundColor\": [0, 0, 0, 0],\n    \"borderLineSize\": 0,\n    \"borderLineColor\": [0, 0, 0, 255],\n    \"haloSize\": 2,\n    \"haloColor\": [0, 0, 0, 255],\n    \"verticalAlignment\": \"baseline\",\n    \"horizontalAlignment\": \"center\",\n    \"rightToLeft\": false,\n    \"angle\": 0,\n    \"xoffset\": 0,\n    \"yoffset\": 0,\n    \"kerning\": true,\n    \"font\": {\n        \"family\": \"serif\",\n        \"size\": 12,\n        \"style\": \"normal\",\n        \"weight\": \"bold\",\n        \"decoration\": \"none\"\n    },\n    \"text\": $distanceInt.result + \" Feet\"\n}","source":"{\n  \"type\" : \"esriTS\",\n  \"color\" : [255,255,0,255],\n  \"backgroundColor\" : [0,0,0,0],\n  \"borderLineSize\" : 0,\n  \"borderLineColor\" : [0,0,0,255],\n  \"haloSize\" : 2,\n  \"haloColor\" : [0,0,0,255],\n  \"verticalAlignment\" : \"baseline\",\n  \"horizontalAlignment\" : \"center\",\n  \"rightToLeft\" : false,\n  \"angle\" : 0,\n  \"xoffset\" : 0,\n  \"yoffset\" : 0,\n  \"kerning\" : true,\n  \"font\" : {\n    \"family\" : \"serif\",\n    \"size\" : 12,\n    \"style\" : \"normal\",\n    \"weight\" : \"bold\",\n    \"decoration\" : \"none\"\n  },\n  \"text\" : $distanceInt.result + \" Feet\"\n}"}},"name":"labelFeetValues2","position":"-30,1260","title":"Create Value","transitions":[{"id":268,"inputs":{},"position":"90,1330 90,1360","sourceConnector":"bottom","target":{"id":250}}]},{"action":"gcx:wf:core::CreateValue","id":254,"inputs":{"expression":{"accessors":["$distance"],"annotations":[{"count":9,"index":0,"kind":"idref"}],"code":"$distance.distance.toFixed(0)","source":"$distance.distance.toFixed(0)"}},"name":"distanceInt","position":"-30,1160","title":"Create Value","transitions":[{"id":270,"inputs":{},"position":"90,1230 90,1260","sourceConnector":"bottom","target":{"id":252},"targetConnector":"top"}]},{"action":"gcx:wf:arcgis::CreateGraphic","id":256,"inputs":{"geometry":{"accessors":["$lineCentroid2"],"annotations":[{"count":14,"index":0,"kind":"idref"}],"code":"$lineCentroid2.centroid","source":"$lineCentroid2.centroid"},"symbol":{"accessors":["$distTextSymbol4"],"annotations":[{"count":16,"index":0,"kind":"idref"}],"code":"$distTextSymbol4.symbol","source":"$distTextSymbol4.symbol"}},"name":"labelFeature2","position":"-30,1560","title":"Create Feature","transitions":[{"id":273,"inputs":{},"position":"90,1630 90,1660","sourceConnector":"bottom","target":{"id":258},"targetConnector":"top"}]},{"action":"gcx:wf:arcgis::AddGraphicsLayerFeatures","id":258,"inputs":{"features":{"accessors":["$labelFeature2"],"annotations":[{"count":14,"index":0,"kind":"idref"}],"code":"$labelFeature2.feature","source":"$labelFeature2.feature"},"layerId":"theLabel"},"name":"addGraphics3","position":"-30,1660","title":"Add Graphics"}]},{"id":184,"steps":[{"id":185,"inputs":{},"position":"0,0","purpose":"start","title":"Container","transitions":[{"id":260,"inputs":{},"position":"90,60 90,110","sourceConnector":"bottom","target":{"id":259}}]},{"action":"gcx:wf:core::CreateValue","id":196,"inputs":{"expression":{"accessors":["$projectFirstVertex"],"annotations":[{"count":19,"index":0,"kind":"idref"}],"code":"$projectFirstVertex.geometry.x.toFixed(0)","source":"$projectFirstVertex.geometry.x.toFixed(0)"}},"name":"fixedXFirst","position":"-30,210","title":"Create Value","transitions":[{"id":235,"inputs":{},"position":"90,280 90,198 90,198 90,300","sourceConnector":"bottom","target":{"id":208},"targetConnector":"top"}]},{"action":"gcx:wf:arcgis::SymbolFromJson","id":204,"inputs":{"json":{"accessors":["$xFirstLocationValue"],"annotations":[{"count":20,"index":0,"kind":"idref"}],"code":"$xFirstLocationValue.result","source":"$xFirstLocationValue.result"}},"name":"xFirstFromJson","position":"-30,390","title":"Get Symbol From JSON","transitions":[{"id":239,"inputs":{},"position":"90,460 90,378 90,378 90,480","sourceConnector":"bottom","target":{"id":210},"targetConnector":"top"}]},{"action":"gcx:wf:arcgis::AddGraphicsLayerFeatures","id":206,"inputs":{"features":{"accessors":["$xFirstGraphicFeature"],"annotations":[{"count":21,"index":0,"kind":"idref"}],"code":"$xFirstGraphicFeature.feature","source":"$xFirstGraphicFeature.feature"},"layerId":"xyLocation"},"name":"addXFirstGraphics","position":"-30,570","title":"Add Graphics","transitions":[{"id":246,"inputs":{},"position":"90,640 90,558 90,558 90,660","sourceConnector":"bottom","target":{"id":212},"targetConnector":"top"}]},{"action":"gcx:wf:core::CreateValue","id":208,"inputs":{"expression":{"accessors":["$fixedXFirst"],"annotations":[{"count":12,"index":378,"kind":"idref"}],"code":"{\n    \"type\": \"esriTS\",\n    \"color\": [255, 255, 0, 255],\n    \"haloColor\": [0, 0, 0, 255],\n    \"haloSize\": 2,\n    \"haloColor\": [0, 0, 0, 255],\n    \"horizontalAlignment\": \"right\",\n    \"verticalAlignment\": \"middle\",\n    \"xoffset\": -5,\n    \"yoffset\": +5,\n    \"font\": {\n        \"family\": \"calibri\",\n        \"size\": 10,\n        \"style\": \"normal\",\n        \"weight\": \"bold\",\n        \"decoration\": \"none\"\n    },\n    \"text\": \"X: \" + $fixedXFirst.result\n}","source":"{\n  \"type\": \"esriTS\",\n  \"color\": [255,255,0,255],\n  \"haloColor\": [0,0,0,255],\n  \"haloSize\": 2,\n  \"haloColor\": [0,0,0,255],\n  \"horizontalAlignment\" : \"right\",\n  \"verticalAlignment\": \"middle\",\n  \"xoffset\": -5,\n  \"yoffset\": +5,\n  \n  \"font\": {\n    \"family\" : \"calibri\",\n    \"size\" : 10,\n    \"style\" : \"normal\",\n    \"weight\" : \"bold\",\n    \"decoration\" : \"none\"\n  },\n  \"text\" :\"X: \" +$fixedXFirst.result\n}"}},"name":"xFirstLocationValue","position":"-30,300","title":"Create Value","transitions":[{"id":238,"inputs":{},"position":"90,370 90,288 90,288 90,390","sourceConnector":"bottom","target":{"id":204},"targetConnector":"top"}]},{"action":"gcx:wf:arcgis::CreateGraphic","id":210,"inputs":{"geometry":{"accessors":["$lineForm"],"annotations":[{"count":9,"index":0,"kind":"idref"}],"code":"$lineForm.state.vertexGeomPicker.value.geometry[0]","source":"$lineForm.state.vertexGeomPicker.value.geometry[0]"},"symbol":{"accessors":["$xFirstFromJson"],"annotations":[{"count":15,"index":0,"kind":"idref"}],"code":"$xFirstFromJson.symbol","source":"$xFirstFromJson.symbol"}},"name":"xFirstGraphicFeature","position":"-30,480","title":"Create Feature","transitions":[{"id":242,"inputs":{},"position":"90,550 90,468 90,468 90,570","sourceConnector":"bottom","target":{"id":206},"targetConnector":"top"}]},{"action":"gcx:wf:core::CreateValue","id":212,"inputs":{"expression":{"accessors":["$projectFirstVertex"],"annotations":[{"count":19,"index":0,"kind":"idref"}],"code":"$projectFirstVertex.geometry.y.toFixed(0)","source":"$projectFirstVertex.geometry.y.toFixed(0)"}},"name":"fixedYFirst","position":"-30,660","title":"Create Value","transitions":[{"id":247,"inputs":{},"position":"90,730 90,648 90,648 90,750","sourceConnector":"bottom","target":{"id":226},"targetConnector":"top"}]},{"action":"gcx:wf:arcgis::SymbolFromJson","id":219,"inputs":{"json":{"accessors":["$yFirstLocationValue"],"annotations":[{"count":20,"index":0,"kind":"idref"}],"code":"$yFirstLocationValue.result","source":"$yFirstLocationValue.result"}},"name":"yFirstFromJson","position":"-30,840","title":"Get Symbol From JSON","transitions":[{"id":253,"inputs":{},"position":"90,910 90,828 90,828 90,930","sourceConnector":"bottom","target":{"id":231},"targetConnector":"top"}]},{"action":"gcx:wf:arcgis::AddGraphicsLayerFeatures","id":222,"inputs":{"features":{"accessors":["$yFirstGraphicFeature"],"annotations":[{"count":21,"index":0,"kind":"idref"}],"code":"$yFirstGraphicFeature.feature","source":"$yFirstGraphicFeature.feature"},"layerId":"xyLocation"},"name":"addYFirstGraphics","position":"-30,1020","title":"Add Graphics"},{"action":"gcx:wf:core::CreateValue","id":226,"inputs":{"expression":{"accessors":["$fixedYFirst"],"annotations":[{"count":12,"index":351,"kind":"idref"}],"code":"{\n    \"type\": \"esriTS\",\n    \"color\": [255, 255, 0, 255],\n    \"haloColor\": [0, 0, 0, 255],\n    \"haloSize\": 2,\n    \"horizontalAlignment\": \"right\",\n    \"verticalAlignment\": \"middle\",\n    \"xoffset\": -5,\n    \"yoffset\": -5,\n    \"font\": {\n        \"family\": \"calibri\",\n        \"size\": 10,\n        \"style\": \"normal\",\n        \"weight\": \"bold\",\n        \"decoration\": \"none\"\n    },\n    \"text\": \"Y: \" + $fixedYFirst.result\n}","source":"{\n  \"type\": \"esriTS\",\n  \"color\": [255,255,0,255],\n  \"haloColor\": [0,0,0,255],\n  \"haloSize\": 2,\n  \"horizontalAlignment\" : \"right\",\n  \"verticalAlignment\": \"middle\",\n  \"xoffset\": -5,\n  \"yoffset\": -5,\n  \n  \"font\": {\n    \"family\" : \"calibri\",\n    \"size\" : 10,\n    \"style\" : \"normal\",\n    \"weight\" : \"bold\",\n    \"decoration\" : \"none\"\n  },\n  \"text\" :\"Y: \" + $fixedYFirst.result\n}"}},"name":"yFirstLocationValue","position":"-30,750","title":"Create Value","transitions":[{"id":251,"inputs":{},"position":"90,820 90,738 90,738 90,840","sourceConnector":"bottom","target":{"id":219},"targetConnector":"top"}]},{"action":"gcx:wf:arcgis::CreateGraphic","id":231,"inputs":{"geometry":{"accessors":["$lineForm"],"annotations":[{"count":9,"index":0,"kind":"idref"}],"code":"$lineForm.state.vertexGeomPicker.value.geometry[0]","source":"$lineForm.state.vertexGeomPicker.value.geometry[0]"},"symbol":{"accessors":["$yFirstFromJson"],"annotations":[{"count":15,"index":0,"kind":"idref"}],"code":"$yFirstFromJson.symbol","source":"$yFirstFromJson.symbol"}},"name":"yFirstGraphicFeature","position":"-30,930","title":"Create Feature","transitions":[{"id":255,"inputs":{},"position":"90,1000 90,918 90,918 90,1020","sourceConnector":"bottom","target":{"id":222},"targetConnector":"top"}]},{"action":"gcx:wf:arcgis::ProjectServiceTask","id":259,"inputs":{"geometry":{"accessors":["$lineForm"],"annotations":[{"count":9,"index":0,"kind":"idref"}],"code":"$lineForm.state.vertexGeomPicker.value.geometry[0]","source":"$lineForm.state.vertexGeomPicker.value.geometry[0]"},"outSpatialReference":26852},"name":"projectFirstVertex","position":"-30,110","title":"Project Geometry","transitions":[{"id":261,"inputs":{},"position":"90,180 90,210","sourceConnector":"bottom","target":{"id":196},"targetConnector":"top"}]}]},{"id":342,"steps":[{"id":344,"inputs":{},"position":"0,0","purpose":"start","title":"Container","transitions":[{"id":352,"inputs":{},"position":"90,60 90,110","sourceConnector":"bottom","target":{"id":346}}]},{"action":"gcx:wf:app::RunCommand","id":346,"inputs":{"commandName":"SetActiveTool","commandParameter":"PolygonMarkupTool"},"position":"-30,110","title":"Run Command","transitions":[{"id":354,"inputs":{},"position":"90,140 90,190","sourceConnector":"bottom","target":{"id":348}}]},{"action":"gcx:wf:app::RunCommand","id":348,"inputs":{"commandName":"ActivateSnapping"},"position":"-30,190","title":"Run Command","transitions":[{"id":356,"inputs":{},"position":"90,220 90,270","sourceConnector":"bottom","target":{"id":350}}]},{"action":"gcx:wf:app::RunCommand","id":350,"inputs":{"commandName":"ClearActiveTool"},"position":"-30,270","title":"Run Command"}]},{"id":470,"steps":[{"id":472,"inputs":{},"position":"0,0","purpose":"start","title":"Container","transitions":[{"id":523,"inputs":{},"position":"90,60 90,90","sourceConnector":"bottom","target":{"id":522}}]},{"action":"gcx:wf:core::CreateValue","id":474,"inputs":{"expression":{"accessors":["$fixedYLast"],"annotations":[{"count":11,"index":350,"kind":"idref"}],"code":"{\n    \"type\": \"esriTS\",\n    \"color\": [255, 255, 0, 255],\n    \"haloColor\": [0, 0, 0, 255],\n    \"haloSize\": 2,\n    \"horizontalAlignment\": \"left\",\n    \"verticalAlignment\": \"middle\",\n    \"xoffset\": +5,\n    \"yoffset\": -5,\n    \"font\": {\n        \"family\": \"calibri\",\n        \"size\": 10,\n        \"style\": \"normal\",\n        \"weight\": \"bold\",\n        \"decoration\": \"none\"\n    },\n    \"text\": \"Y: \" + $fixedYLast.result\n}","source":"{\n  \"type\": \"esriTS\",\n  \"color\": [255,255,0,255],\n  \"haloColor\": [0,0,0,255],\n  \"haloSize\": 2,\n  \"horizontalAlignment\" : \"left\",\n  \"verticalAlignment\": \"middle\",\n  \"xoffset\": +5,\n  \"yoffset\": -5,\n  \n  \"font\": {\n    \"family\" : \"calibri\",\n    \"size\" : 10,\n    \"style\" : \"normal\",\n    \"weight\" : \"bold\",\n    \"decoration\" : \"none\"\n  },\n  \"text\" :\"Y: \" + $fixedYLast.result\n}"}},"name":"yLastLocationValue","position":"-30,860","title":"Create Value","transitions":[{"id":510,"inputs":{},"position":"90,930 90,848 90,848 90,950","sourceConnector":"bottom","target":{"id":490},"targetConnector":"top"}]},{"action":"gcx:wf:core::CreateValue","id":476,"inputs":{"expression":{"accessors":["$projectLastVertex"],"annotations":[{"count":18,"index":0,"kind":"idref"}],"code":"$projectLastVertex.geometry.x.toFixed(0)","source":"$projectLastVertex.geometry.x.toFixed(0)"}},"name":"fixedXLast","position":"-30,320","title":"Create Value","transitions":[{"id":498,"inputs":{},"position":"90,390 90,308 90,308 90,410","sourceConnector":"bottom","target":{"id":484},"targetConnector":"top"}]},{"action":"gcx:wf:arcgis::CreateGraphic","id":478,"inputs":{"geometry":{"accessors":["$lineForm"],"annotations":[{"count":9,"index":0,"kind":"idref"}],"code":"$lineForm.state.vertexGeomPicker.value.geometry[0]","source":"$lineForm.state.vertexGeomPicker.value.geometry[0]"},"symbol":{"accessors":["$yLastFromJson"],"annotations":[{"count":14,"index":0,"kind":"idref"}],"code":"$yLastFromJson.symbol","source":"$yLastFromJson.symbol"}},"name":"yLastGraphicFeature","position":"-30,1040","title":"Create Feature","transitions":[{"id":496,"inputs":{},"position":"90,1110 90,1028 90,1028 90,1130","sourceConnector":"bottom","target":{"id":492},"targetConnector":"top"}]},{"action":"gcx:wf:arcgis::SymbolFromJson","id":480,"inputs":{"json":{"accessors":["$xLastLocationValue"],"annotations":[{"count":19,"index":0,"kind":"idref"}],"code":"$xLastLocationValue.result","source":"$xLastLocationValue.result"}},"name":"xLastFromJson","position":"-30,500","title":"Get Symbol From JSON","transitions":[{"id":502,"inputs":{},"position":"90,570 90,488 90,488 90,590","sourceConnector":"bottom","target":{"id":486},"targetConnector":"top"}]},{"action":"gcx:wf:arcgis::AddGraphicsLayerFeatures","id":482,"inputs":{"features":{"accessors":["$xLastGraphicFeature"],"annotations":[{"count":20,"index":0,"kind":"idref"}],"code":"$xLastGraphicFeature.feature","source":"$xLastGraphicFeature.feature"},"layerId":"xyLocation"},"name":"addXLastGraphics","position":"-30,680","title":"Add Graphics","transitions":[{"id":506,"inputs":{},"position":"90,750 90,668 90,668 90,770","sourceConnector":"bottom","target":{"id":488},"targetConnector":"top"}]},{"action":"gcx:wf:core::CreateValue","id":484,"inputs":{"expression":{"accessors":["$fixedXLast"],"annotations":[{"count":11,"index":377,"kind":"idref"}],"code":"{\n    \"type\": \"esriTS\",\n    \"color\": [255, 255, 0, 255],\n    \"haloColor\": [0, 0, 0, 255],\n    \"haloSize\": 2,\n    \"haloColor\": [0, 0, 0, 255],\n    \"horizontalAlignment\": \"left\",\n    \"verticalAlignment\": \"middle\",\n    \"xoffset\": +5,\n    \"yoffset\": +5,\n    \"font\": {\n        \"family\": \"calibri\",\n        \"size\": 10,\n        \"style\": \"normal\",\n        \"weight\": \"bold\",\n        \"decoration\": \"none\"\n    },\n    \"text\": \"X: \" + $fixedXLast.result\n}","source":"{\n  \"type\": \"esriTS\",\n  \"color\": [255,255,0,255],\n  \"haloColor\": [0,0,0,255],\n  \"haloSize\": 2,\n  \"haloColor\": [0,0,0,255],\n  \"horizontalAlignment\" : \"left\",\n  \"verticalAlignment\": \"middle\",\n  \"xoffset\": +5,\n  \"yoffset\": +5,\n  \n  \"font\": {\n    \"family\" : \"calibri\",\n    \"size\" : 10,\n    \"style\" : \"normal\",\n    \"weight\" : \"bold\",\n    \"decoration\" : \"none\"\n  },\n  \"text\" :\"X: \" +$fixedXLast.result\n}"}},"name":"xLastLocationValue","position":"-30,410","title":"Create Value","transitions":[{"id":500,"inputs":{},"position":"90,480 90,398 90,398 90,500","sourceConnector":"bottom","target":{"id":480},"targetConnector":"top"}]},{"action":"gcx:wf:arcgis::CreateGraphic","id":486,"inputs":{"geometry":{"accessors":["$lineForm"],"annotations":[{"count":9,"index":0,"kind":"idref"}],"code":"$lineForm.state.vertexGeomPicker.value.geometry[0]","source":"$lineForm.state.vertexGeomPicker.value.geometry[0]"},"symbol":{"accessors":["$xLastFromJson"],"annotations":[{"count":14,"index":0,"kind":"idref"}],"code":"$xLastFromJson.symbol","source":"$xLastFromJson.symbol"}},"name":"xLastGraphicFeature","position":"-30,590","title":"Create Feature","transitions":[{"id":504,"inputs":{},"position":"90,660 90,578 90,578 90,680","sourceConnector":"bottom","target":{"id":482},"targetConnector":"top"}]},{"action":"gcx:wf:core::CreateValue","id":488,"inputs":{"expression":{"accessors":["$projectLastVertex"],"annotations":[{"count":18,"index":0,"kind":"idref"}],"code":"$projectLastVertex.geometry.y.toFixed(0)","source":"$projectLastVertex.geometry.y.toFixed(0)"}},"name":"fixedYLast","position":"-30,770","title":"Create Value","transitions":[{"id":508,"inputs":{},"position":"90,840 90,758 90,758 90,860","sourceConnector":"bottom","target":{"id":474},"targetConnector":"top"}]},{"action":"gcx:wf:arcgis::SymbolFromJson","id":490,"inputs":{"json":{"accessors":["$yLastLocationValue"],"annotations":[{"count":19,"index":0,"kind":"idref"}],"code":"$yLastLocationValue.result","source":"$yLastLocationValue.result"}},"name":"yLastFromJson","position":"-30,950","title":"Get Symbol From JSON","transitions":[{"id":512,"inputs":{},"position":"90,1020 90,938 90,938 90,1040","sourceConnector":"bottom","target":{"id":478},"targetConnector":"top"}]},{"action":"gcx:wf:arcgis::AddGraphicsLayerFeatures","id":492,"inputs":{"features":{"accessors":["$yLastGraphicFeature"],"annotations":[{"count":20,"index":0,"kind":"idref"}],"code":"$yLastGraphicFeature.feature","source":"$yLastGraphicFeature.feature"},"layerId":"xyLocation"},"name":"addYLastGraphics","position":"-30,1130","title":"Add Graphics"},{"action":"gcx:wf:arcgis::ProjectServiceTask","id":494,"inputs":{"geometry":{"accessors":["$geomList","$loopPass"],"annotations":[{"count":9,"index":0,"kind":"idref"},{"count":9,"index":17,"kind":"idref"}],"code":"$geomList.result[$loopPass.result]","source":"$geomList.result[$loopPass.result]"},"outSpatialReference":26852},"name":"projectLastVertex","position":"-30,220","title":"Project Geometry","transitions":[{"id":516,"inputs":{},"position":"90,290 90,320","sourceConnector":"bottom","target":{"id":476},"targetConnector":"top"}]},{"action":"gcx:wf:core::Log","id":522,"inputs":{"message":{"accessors":["$loopPass"],"annotations":[{"count":9,"index":21,"kind":"idref"}],"code":"\"the loop pass is: \" + $loopPass.result","source":"`the loop pass is: ${$loopPass.result}`"}},"position":"-30,90","title":"Log","transitions":[{"id":526,"inputs":{},"position":"90,120 90,150","sourceConnector":"bottom","target":{"id":525},"targetConnector":"top"}]},{"action":"gcx:wf:core::Log","id":525,"inputs":{"message":{"accessors":["$geomList"],"annotations":[{"count":9,"index":27,"kind":"idref"}],"code":"\"the geomList length is: \" + $geomList.result.length","source":"`the geomList length is: ${$geomList.result.length}`"}},"position":"-30,150","title":"Log","transitions":[{"id":527,"inputs":{},"position":"90,180 90,220","sourceConnector":"bottom","target":{"id":494},"targetConnector":"top"}]}]}],"designerVersion":"5.15.1+5","forms":[{"defaults":{},"elements":{"footer":{"enabled":true,"items":{"0":{"default":false,"index":0,"label":{"markdown":"Single Point"},"validates":false,"value":"single"},"1":{"index":1,"label":{"markdown":"Create a Line"},"validates":false,"value":"multi"}},"section":"footer","type":"ButtonBar"},"header":{"section":"header","title":{"markdown":"Location Mapping Tool"},"type":"Header"},"text1":{"description":{"markdown":"Do you want to map a single point or Map a line and measure the distance between the vertices"},"enabled":true,"index":0,"type":"Text"}},"id":34},{"defaults":{},"elements":{"footer":{"enabled":true,"items":{"0":{"default":true,"index":0,"label":{"markdown":"Submit"},"validates":true,"value":"submit"},"1":{"index":1,"label":{"markdown":"Cancel"},"validates":false,"value":"cancel"}},"section":"footer","type":"ButtonBar","visible":false},"header":{"section":"header","title":{"markdown":"Location Mapping Tool"},"type":"Header"},"singlePtGeomPicker":{"autoActivate":true,"enabled":true,"format":"point","index":0,"itemLabel":{"markdown":"Location"},"prompt":{"markdown":"Map a Point"},"require":true,"size":1,"title":{"markdown":"Click on the map.  Hold down \"ctrl\" to snap to a layer in the map"},"type":"GeometryPicker"}},"id":36},{"defaults":{},"elements":{"footer":{"enabled":true,"items":{"0":{"default":true,"index":0,"label":{"markdown":"Add Vertex"},"validates":true,"value":"add"},"1":{"index":1,"label":{"markdown":"Finish"},"validates":false,"value":"exit"}},"section":"footer","type":"ButtonBar","visible":false},"header":{"section":"header","title":{"markdown":"Location Mapping Tool"},"type":"Header"},"vertexGeomPicker":{"autoActivate":true,"enabled":true,"format":"point","index":0,"itemLabel":{"markdown":"Segment Vertex"},"prompt":{"markdown":"Add Segment Vertex"},"require":true,"size":1,"title":{"markdown":"Click on the map to add a segment vertex.  Hold down \"ctrl\" to snap to a layer in the map"},"type":"GeometryPicker"}},"id":63}],"licenseInfo":{"licenseUrl":"https://gisserver/Geocortex/Workflow/service/auth/license"},"start":{"id":3},"transitions":[{"branch":"changed$singlePtGeomPicker","id":44,"inputs":{},"source":{"id":42},"target":{"id":8}},{"branch":"content","id":50,"inputs":{},"source":{"id":10},"target":{"id":16}},{"branch":"loop","id":59,"inputs":{},"source":{"id":56},"target":{"id":58}},{"branch":"changed$vertexGeomPicker","id":116,"inputs":{},"source":{"id":65},"target":{"id":115}},{"branch":"content","id":186,"inputs":{},"source":{"id":183},"target":{"id":185}},{"branch":"content","id":194,"inputs":{},"source":{"id":192},"target":{"id":164}},{"branch":"content","id":360,"inputs":{},"source":{"id":358},"target":{"id":344}},{"branch":"content","id":520,"inputs":{},"source":{"id":518},"target":{"id":472}}]}

    1

Du måste logga in om du vill lämna en kommentar.