Select to view content in your preferred language

Time Slider not working in new map Viewer

764
5
05-31-2022 03:17 PM
Labels (2)
MarkChilcott
Frequent Contributor

Hi Peoples,

I have a Map created using the Classic Map Viewer in ArcGIS Online, that references an ArcGIS Server service containing Time-Aware layers.

When you publish your map to ArcGIS Server, the time information in your time-enabled layers and map is preserved and accessible through the map service.

The AGOL Map I created works in Classic Map Viewer, but fails to work in the new Map Viewer.

Anyone else seen this behaviour?

Cheers,

Mark

 

Tags (2)
0 Kudos
5 Replies
RussRoberts
Esri Notable Contributor

Can you share the map?

0 Kudos
MarkChilcott
Frequent Contributor

Hi Russell,

You should be able to see the following public map.

https://arcg.is/imG1i

Layers are coming from our ArcGIS Server: 

https://services.thelist.tas.gov.au/arcgis/rest/services/AerialPhotoViewer/AerialPhoto_Time/MapServe...

Cheers,

Mark

 

RussRoberts
Esri Notable Contributor

Looks like it might be a CORS policy issue on the server setup. I added the layers as an item first and then brought them into the Map Viewer which removes the URL access and works around the CORS issue and it works.

Sample here:

https://jsapi.maps.arcgis.com/apps/mapviewer/index.html?webmap=fff677410a594345b8dd4ca5e2f58efa

0 Kudos
MarkChilcott
Frequent Contributor

Hi Russell,

Thanks for looking into this.  I can't seem to reproduce the steps you have used.  Could you break it down for me please.

In MyContent

I tried again with reference to the one layer

This opens in Classic Map viewer.  Does not open in new map viewer.

The one you created  works - what did you do?  

I noted there was not identify in yours?

 

 

 

Cheers,

Mark

0 Kudos
RussRoberts
Esri Notable Contributor

Yup thats what I did

My Content - Add Item - ArcGIS Server Service and then used this option

RussellRoberts1_0-1654174426280.png

Then from Map Viewer for the reference layer bc I have it already open I did Add Layer in Map Viewer and on the reference layer item Use as Basemap

 

RussellRoberts1_1-1654174498130.png

 

Didn't adjust any sharing settings until after I authored the map to post in this thread.

0 Kudos