Estoy intentando configurar RCE (Roadway Characteristics Editor) para usar Open Street Map como el mapa base predeterminado cuando el usuario abre RCE. Puedes editar el archivo sample_webmap.json para establecer diferentes mapas base por defecto, pero no he descubierto cómo usar la URL de Open Street Map. ¿Alguien ha hecho esto? <\/P>
brian<\/P>
<\/P>
Ayuda de Mapa Base Personalizado de RCE<\/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
Los miembros registrados pueden publicar, seguir actualizaciones y más. ¿Nuevo aquí? Regístrate gratis.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.