ユーザーが RCE (Roadway Characteristics Editor) を開いたときに、Open Street Map をデフォルトのベースマップとして使用するように RCE を設定しようとしています。sample_webmap.json ファイルを編集して異なるベースマップをデフォルトに設定することはできますが、Open Street Map の URL をどのように使用するかはまだわかっていません。どなたかこれを行ったことがありますか?<\/P>
brian<\/P>
<\/P>
RCE Custom Base Map Help<\/A><\/P><\/BODY><\/HTML>
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
サインインしたメンバーは投稿、更新のフォローなどができます。初めてですか?無料アカウントを登録してください。
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.