I am trying to configure RCE (Roadway Characteristics Editor) to use Open Street Map as the default base map when the user opens up RCE. You can edit the sample_webmap.json file to default to different base maps but I haven't figured to how to use the Open Street Map url. Has anyone done this?
brian
Solved! Go to Solution.
Brian,
Whenever you aren't sure about how to format the webmap used by RCE, build the webmap in ArcGIS Online and then export it. Check out the documentation for Copying a web map from arcgis.com as a local file. This doc has you author in ArcGIS Online first and then use a special URL (http://www.arcgis.com/sharing/content/items/{webmap ID}/data?f=pjson) to export your webmap to json. After I do this I like to run that text through one of the many online json formatting tools.
You might also consider just leaving the webmap in ArcGIS Online and referencing it by it's webmap ID. The benefit here is it is real easy to change any symbology in the map by simply updating the map in ArcGIS Online without having to republish your map service.
When you author the webmap in ArcGIS Online, just choose OpenStreetmap as your basemap. When you export the json you will see that you don't need a URL. The json looks like this:
"baseMap":{
"baseMapLayers":[
{
"type":"OpenStreetMap",
"layerType":"OpenStreetMap",
"opacity":1,
"visibility":true,
"id":"OpenStreetMap"
}
],
"title":"OpenStreetMap"
}
Brian,
Whenever you aren't sure about how to format the webmap used by RCE, build the webmap in ArcGIS Online and then export it. Check out the documentation for Copying a web map from arcgis.com as a local file. This doc has you author in ArcGIS Online first and then use a special URL (http://www.arcgis.com/sharing/content/items/{webmap ID}/data?f=pjson) to export your webmap to json. After I do this I like to run that text through one of the many online json formatting tools.
You might also consider just leaving the webmap in ArcGIS Online and referencing it by it's webmap ID. The benefit here is it is real easy to change any symbology in the map by simply updating the map in ArcGIS Online without having to republish your map service.
When you author the webmap in ArcGIS Online, just choose OpenStreetmap as your basemap. When you export the json you will see that you don't need a URL. The json looks like this:
"baseMap":{
"baseMapLayers":[
{
"type":"OpenStreetMap",
"layerType":"OpenStreetMap",
"opacity":1,
"visibility":true,
"id":"OpenStreetMap"
}
],
"title":"OpenStreetMap"
}
Thanks Tom. I knew it had to be something simple.
brian