POST
|
I know this is about a year old now, but has this been updated now to where you can pull in a second geometry from the web map? I am looking to run a "within" query that will perform a point in polygon analysis to count the points that fall within the polygon.
... View more
12-07-2018
08:41 AM
|
0
|
5
|
3276
|
POST
|
Well I solved my own issue. I manually added the MapOptions and exportOptions to the webMap JSON. webmapJSON = web_map_item.get_data()
webmapJSON.update(json.loads('''{"mapOptions" : { "extent" : { "xmin":-88.55, "ymin":17.55, "xmax":-72.75, "ymax":38.05, "spatialReference" : { "wkid" : 4326 } }}}'''))
webmapJSON.update(json.loads('''{"exportOptions": { "dpi" : 300, "outputSize" : [1000,1000]}}''')) From here, you can call the export_map function and the image will be rendered. Also, beware that your layers must be marked public for this to work.
... View more
10-22-2018
01:45 PM
|
4
|
1
|
1485
|
POST
|
I am trying to export a web map constructed in python (1.5.0) as an image, however, when sending the web map to the export_map call, the JSON appears to be missing the MapOptions section of the JSON that is needed. Any thoughts on what I am missing? search_result = gis.content.search(query="title:" + carrier + "_In-Force", item_type="Feature Layer")
print(search_result[0])
search_result_HU = gis.content.search(query="title:Michael_10_12", item_type="Feature Layer")
print(search_result_HU[0])
wm = WebMap()
wm.add_layer(search_result_HU[0], options={'title': 'Hurricane', 'opacity': 0.5})
wm.add_layer(search_result[0], options={'title': 'Locations'})
print(wm.definition)
output = mapping.export_map(web_map_as_json=wm, format='PNG32')
print(type(output)) When calling the export_map, I am getting the following error: Error executing tool. Export Web Map Task : 'mapOptions'
... View more
10-18-2018
07:13 AM
|
0
|
2
|
1806
|
Title | Kudos | Posted |
---|---|---|
4 | 10-22-2018 01:45 PM |
Online Status |
Offline
|
Date Last Visited |
11-11-2020
02:24 AM
|