I would love to see a code example if you have one. I could not get this to work. I am able to create a FeatureSet made up of Features (the feature is of type "Polyline"), but I can't pass the FeatureSet into draw (I believe the function only takes one item to draw, not a list). And even if I pass in a single Feature, the map refreshes, but I don't see any graphics...
#lines1 = features.FeatureSet(features = df_lines['Lines'])
map1 = gis.map()
symbol = {
"type": "esriSLS",
"style": "esriSLSSolid",
"color": [115,76,0,255],
"width": 3
}
for item in df_lines['Lines']:
print("drawing " + str(item.geometry))
map1.draw(shape = item.geometry, symbol=symbol)
map1
At the very least, I can't even get this simple example to work: can you?
my_line = arcgis.geometry.Polyline({"paths": [[38.8,-78.8],[34.2,-117]]})
my_line_feature = arcgis.features.Feature(my_line, attributes=None)
map1.draw(my_line, symbol=symbol)
OR
map1.draw(my_line_feature, symbol=symbol)