Select to view content in your preferred language

Change layers in Compare Analysis template?

1034
3
Jump to solution
10-03-2017 03:59 AM
MarkCooper5
Frequent Contributor

We have over 4 sets of aerial imagery that our customers would like to view side by side. I understand that the compare analysis template in AGOL can only view 4 at a time (I understand more than this would be too small), but I was wondering if there was a way that the user could select which map is shown in each of the windows, perhaps by activating the layer list or basemap selector in the template?

1 Solution

Accepted Solutions
KellyHutchins
Esri Frequent Contributor

Its currently not possible to choose which layers appear in the compare panels using the layer list selector but that sounds like a great enhancement we might be able to add in the future. 

You can display more than 4 maps you just need to jump through some extra hoops and use the ArcGIS Online Assistant to edit the json to add additional map ids. 

Here's how you'd do this 

  1. Log-in to AGO Assistant with your online login 
  2. In the search content box enter the id of your Compare Analysis app. You can find this value by looking at the app url and taking the value after appid=  For example: http://www.arcgis.com/apps/CompareAnalysis/index.html?appid=dc6838a83dfd4b9fb5de29db50708dbf 
  3. Select View an item's json from the 'I want to ...' dropdown then click on the compare app 
  4. In the JSON view you'll see a Data section - this is the part you'll want to edit. You will see a set of web map ids ``` 
    "webmap": [
    "38cd0d9c86544a81af81800ae59bdf04",
    "e8a8aa49caf14811a1d5b0ffc3ce7cf5",
    "e2a892af27d94d6fb03e9d51b4f74d59",
    "9220de2ac8204b8f93116d2699a7ae32"
    ]
    ```
  5. Add the ids of any additional web maps you want to view then hit save. Here's the updated app with 6 maps: http://www.arcgis.com/apps/CompareAnalysis/index.html?appid=dc6838a83dfd4b9fb5de29db50708dbf 

View solution in original post

3 Replies
KellyHutchins
Esri Frequent Contributor

Its currently not possible to choose which layers appear in the compare panels using the layer list selector but that sounds like a great enhancement we might be able to add in the future. 

You can display more than 4 maps you just need to jump through some extra hoops and use the ArcGIS Online Assistant to edit the json to add additional map ids. 

Here's how you'd do this 

  1. Log-in to AGO Assistant with your online login 
  2. In the search content box enter the id of your Compare Analysis app. You can find this value by looking at the app url and taking the value after appid=  For example: http://www.arcgis.com/apps/CompareAnalysis/index.html?appid=dc6838a83dfd4b9fb5de29db50708dbf 
  3. Select View an item's json from the 'I want to ...' dropdown then click on the compare app 
  4. In the JSON view you'll see a Data section - this is the part you'll want to edit. You will see a set of web map ids ``` 
    "webmap": [
    "38cd0d9c86544a81af81800ae59bdf04",
    "e8a8aa49caf14811a1d5b0ffc3ce7cf5",
    "e2a892af27d94d6fb03e9d51b4f74d59",
    "9220de2ac8204b8f93116d2699a7ae32"
    ]
    ```
  5. Add the ids of any additional web maps you want to view then hit save. Here's the updated app with 6 maps: http://www.arcgis.com/apps/CompareAnalysis/index.html?appid=dc6838a83dfd4b9fb5de29db50708dbf 
YigliolaMalca
New Contributor

Hello- I tried using these instructions to change the compare template web map via ArcGIS Online Assistance but it only recognizes the top two maps. I would like to compare 4 to 6 maps.

0 Kudos
KellyHutchins
Esri Frequent Contributor

Based on the info you included it looks like you aren't using Compare Analysis. Compare analysis is our original comparison app and supports multiple maps if you use the trick above. The app you are using only supports 2 maps max. Here's a link to the version of compare that supports more than 2 maps

https://www.arcgis.com/home/item.html?id=87ac24135d5341b39b871ff02f3afe49

0 Kudos