Hello, I want to update the map service for our application built from WAB. I assume this can be done from the app config, and codes for the map object from the app config are below. However, the new map service is hosted on our arcgis server and hasn't been added to the portal, so don't have an itemId. How to update the map with new map service? can this be done via editing the app config?
"map": {
"3D": false,
"2D": true,
"position": {
"left": 0,
"top": 0,
"right": 0,
"bottom": 0
},
"itemId": "123123131453254311142122",
"mapOptions": {
"extent": {
"xmin": -10783539.09057307,
"ymin": 3864696.7268318874,
"xmax": -10771213.619762102,
"ymax": 3872101.563947004,
"spatialReference": {
"wkid": 102100
}
}
},
"id": "map",
"portalUrl": "https://mygis.mycompany.com/arcgis"
},
Solved! Go to Solution.
Alex,
You must have a web map item id to work with WAB. So when you say "However, the new map service is hosted on our arcgis server and hasn't been added to the portal" that is an issue as you need to create a web map on AGOL to use.
Alex,
You must have a web map item id to work with WAB. So when you say "However, the new map service is hosted on our arcgis server and hasn't been added to the portal" that is an issue as you need to create a web map on AGOL to use.
Thanks for clarifying that. OK, I'll ask our admin to do that.