How do I change webmaps used in a web mapping application?

128
2
06-19-2020 12:44 PM
SteveLi
New Contributor
web_mapping_app_item.get_data() will give me a json object, which has a map property:

'map': {'3D': False,   '2D': True,   'position': {'left': 0, 'top': 40, 'right': 0, 'bottom': 0},   'itemId': 'xxxxxxx',   'mapOptions': {}},


I need to update the map's itemId property of the web mapping application, how do I do that? 
0 Kudos
2 Replies
VictorTey
Esri Contributor

Hi,

Just like how you get the item data, you can do a update as well. See link below.

Please mark as correct if this helps you so it may help others as well.

arcgis.gis module — arcgis 1.8.1 documentation 

Example

Using and updating GIS content | ArcGIS for Developers 

0 Kudos
SteveLi
New Contributor

Thanks for providing samples.

It's still not clear to me how to do it.  The item I need update is a web mapping application, not webmap.  The update on an item can only take following keys.  which key should I use?

Key

Value

type

Optional string. Indicates type of item, see URL 1 below for valid values.

typeKeywords

Optional string. Provide a lists all sub-types, see URL 1 below for valid values.

description

Optional string. Description of the item.

title

Optional string. Name label of the item.

url

Optional string. URL to item that are based on URLs.

tags

Optional string. Tags listed as comma-separated values, or a list of strings. Used for searches on items.

text

Optional string. For text based items such as Feature Collections & WebMaps

snippet

Optional string. Provide a short summary (limit to max 250 characters) of the what the item is.

extent

Optional string. Provide comma-separated values for min x, min y, max x, max y.

spatialReference

Optional string. Coordinate system that the item is in.

accessInformation

Optional string. Information on the source of the content.

licenseInfo

Optional string. Any license information or restrictions regarding the content.

culture

Optional string. Locale, country and language information.

access

Optional string. Valid values are private, shared, org, or public.

commentsEnabled

Optional boolean. Default is true, controls whether comments are allowed (true) or not allowed (false).

0 Kudos