Skip to content

Commit

Permalink
update content.draw
Browse files Browse the repository at this point in the history
  • Loading branch information
cariashuang0417 committed Oct 23, 2024
1 parent 9818895 commit 8918c82
Showing 1 changed file with 13 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1034,30 +1034,32 @@
"from arcgis.map.symbols import SimpleMarkerSymbolEsriSMS\n",
"from arcgis.map.symbols import SimpleLineSymbolEsriSLS\n",
"\n",
"map_view_outputs.draw(orders_fset, symbol=SimpleMarkerSymbolEsriSMS(**{\"type\": \"esriSMS\",\n",
" \"style\": \"esriSMSCircle\",\n",
" \"color\": [76,115,0,255],\n",
" \"size\": 8}))\n",
"map_view_outputs.draw(depots_fset, symbol=SimpleMarkerSymbolEsriSMS(**{\"type\": \"esriSMS\",\n",
" \"style\": \"esriSMSSquare\",\n",
" \"color\": [255,115,0,255], \"size\": 10}))\n",
"map_view_outputs.content.draw(orders_fset, symbol=SimpleMarkerSymbolEsriSMS(**{\"type\": \"esriSMS\",\n",
" \"style\": \"esriSMSCircle\",\n",
" \"color\": [76,115,0,255],\n",
" \"size\": 8}))\n",
"map_view_outputs.content.draw(depots_fset, symbol=SimpleMarkerSymbolEsriSMS(**{\"type\": \"esriSMS\",\n",
" \"style\": \"esriSMSSquare\",\n",
" \"color\": [255,115,0,255],\n",
" \"size\": 10}))\n",
"\n",
"#Visualize the first route\n",
"out_routes_flist = []\n",
"out_routes_flist.append(results.out_routes.features[0])\n",
"out_routes_fset = []\n",
"out_routes_fset = FeatureSet(out_routes_flist)\n",
"map_view_outputs.draw(out_routes_fset, \n",
"map_view_outputs.content.draw(out_routes_fset, \n",
" symbol=SimpleLineSymbolEsriSLS(**{\"type\": \"esriSLS\",\n",
" \"style\": \"esriSLSSolid\",\n",
" \"color\": [0,100,240,255],\"size\":10}))\n",
" \"style\": \"esriSLSSolid\",\n",
" \"color\": [0,100,240,255],\n",
" \"size\":10}))\n",
"\n",
"#Visualize the second route\n",
"out_routes_flist = []\n",
"out_routes_flist.append(results.out_routes.features[1])\n",
"out_routes_fset = []\n",
"out_routes_fset = FeatureSet(out_routes_flist)\n",
"map_view_outputs.draw(out_routes_fset, \n",
"map_view_outputs.content.draw(out_routes_fset, \n",
" symbol=SimpleLineSymbolEsriSLS(**{\"type\": \"esriSLS\",\n",
" \"style\": \"esriSLSSolid\",\n",
" \"color\": [255,0,0,255],\n",
Expand Down

0 comments on commit 8918c82

Please sign in to comment.