I'm very new to working with ArcGIS Online, so be kind. I created a new group called Hamilton County Base Maps and placed two Web Maps in it. The Web Maps point to services on our ArcGIS for Server and are shared with everyone. I set the Basemap Gallery in AGOL to this group. When I go to my home page (http://hamco.maps.arcgis.com/home/index.html), all is as expected.
When I added the BasemapGallery widget to my WebApp Builder application I see my maps in edit mode, but not when I launch the application in WebApp Builder or when I download the application and put it on my server. In those cases, I see the AGOL basemaps (Streets, Oceans, etc.). Am I doing something wrong, or is this a bug?
Solved! Go to Solution.
I answered my own question, but Robert gets all the credit. Here is the config file I am using for the BasemapGallery Widget:
{
"basemapGallery": {
"showArcGISBasemaps": false,
"basemaps": [{
"layers": [{
"url": "http://ags1.hamiltoncounty.in.gov/arcgis/rest/services/Street_Base/MapServer"
}],
"title": "Streets",
"thumbnailUrl": "images/streets.jpg"
}, {
"layers": [{
"url": "http://ags1.hamiltoncounty.in.gov/arcgis/rest/services/ImageServices/Hamilton_2014/ImageServer"
}],
"title": "2014 Orthos",
"thumbnailUrl": "images/imagery.jpg"
}, {
"layers": [{
"url": "http://ags1.hamiltoncounty.in.gov/arcgis/rest/services/ImageServices/Hamilton_2013/ImageServer"
}],
"title": "2013 Orthos",
"thumbnailUrl": "images/imagery.jpg"
}]
}
}
And here is the "map" section of the main config.json for the application:
"map": {
"3D": false,
"2D": true,
"position": {
"left": 0,
"top": 40,
"right": 0,
"bottom": 0
},
"mapOptions": {},
"id": "map",
"basemaps": [{
"label": "Streets",
"url": "http://ags1.hamiltoncounty.in.gov/arcgis/rest/services/Street_Base/MapServer",
"type": "tiled",
"visible":true,
"alpha":"1",
"icon":"images/app-logo.png"
}],
"operationallayers": [{
"label": "Parcels (REST)",
"url": "http://ags1.hamiltoncounty.in.gov/arcgis/rest/services/Parcels/MapServer/0",
"type": "feature",
"visible":true,
"alpha":"1",
"icon":"images/app-logo.png"
} , {
"label": "Buildings (REST)",
"url": "http://ags1.hamiltoncounty.in.gov/arcgis/rest/services/Buildings/MapServer",
"type": "tiled",
"visible":true,
"alpha":"1",
"icon":"images/app-logo.png"
}]
},
All is well in Hamilton County now.