RCE - how do configure baseMapLayers to default to Open Street Map

5616
2
Jump to solution
05-17-2016 11:35 AM
bbieb
by
Occasional Contributor

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

RCE Custom Base Map Help

brian
1 Solution

Accepted Solutions
by Anonymous User
Not applicable

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"

   }

View solution in original post

2 Replies
by Anonymous User
Not applicable

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"

   }

bbieb
by
Occasional Contributor

Thanks Tom.  I knew it had to be something simple.

brian

brian
0 Kudos