Select to view content in your preferred language

update map item in app config

921
2
Jump to solution
11-10-2016 07:14 AM
Alexwang
Frequent Contributor

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"
},

0 Kudos
1 Solution

Accepted Solutions
RobertScheitlin__GISP
MVP Emeritus

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.

View solution in original post

0 Kudos
2 Replies
RobertScheitlin__GISP
MVP Emeritus

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.

0 Kudos
Alexwang
Frequent Contributor

Thanks for clarifying that. OK, I'll ask our admin to do that. 

0 Kudos