Select to view content in your preferred language

ArcGIS Online Map Viewer > Add media layers: 'The Layer, [layername], cannot be added to the map'.

825
4
Jump to solution
04-06-2023 09:57 AM
GrayElkington
Emerging Contributor

I create a Media Layer, upload an image from my device, but then get 'The Layer, [layername], cannot be added to the map'. I've only just started trying to create a Media Layer. I've tried maybe 30 times with various configurations but that dialog has popped up consistently (see attachment).

I've rebooted my Macbook Pro (running Monterey 12.6.3), tried both Chrome 112.0.5615.49 and Safari 16.3, cleared the caches on both, tried uploading a 143 KB PNG and a 250 KB JPG, applied the relevant advice here (https://community.esri.com/t5/arcgis-online-blog/troubleshooting-error-the-layer-layername-cannot/ba...), yet still the same dialog.

I'm flummoxed and open to suggestions please.

0 Kudos
1 Solution

Accepted Solutions
RussRoberts
Esri Notable Contributor

Yup this is a web app builder application: https://edenenterprises.maps.arcgis.com/apps/webappviewer/index.html?id=0d74c778bc24454da402b96322a3...

I would recommend using Instant App basic viewer after you publish with that you would have to update the website with the embed snippet thats automatically generated for you in the instant app builder.

RussRoberts_0-1680883498836.png

 

 

https://doc.arcgis.com/en/instant-apps/latest/get-started/create-and-publish-apps.htm

View solution in original post

4 Replies
RussRoberts
Esri Notable Contributor

It looks like you are opening the map in a 3.x client  like a Web AppBuilder app. Apps built off of the 3.x JSAPI will not support media layers. Example apps include Map Viewer Classic and Web AppBuilder. If you open the web map in an instant app, experience builder or Map Viewer the media layer will load. 

0 Kudos
GrayElkington
Emerging Contributor

Thanks Russ. Just to be clear, since I'm far from fluent in ESRI lingo, the ESRI map that appears in this page (https://eden.enterprises/pristine-parishes) is the wrong type of client? I ask because it produces the error message I referred to. If so, please could you point me to a page that tells me how to insert a different client on the Eden site, since I have long forgotten how I managed to do so!

0 Kudos
RussRoberts
Esri Notable Contributor

Yup this is a web app builder application: https://edenenterprises.maps.arcgis.com/apps/webappviewer/index.html?id=0d74c778bc24454da402b96322a3...

I would recommend using Instant App basic viewer after you publish with that you would have to update the website with the embed snippet thats automatically generated for you in the instant app builder.

RussRoberts_0-1680883498836.png

 

 

https://doc.arcgis.com/en/instant-apps/latest/get-started/create-and-publish-apps.htm

GrayElkington
Emerging Contributor

Your advice was easy to follow, Russ. The Eden site now features a new map complete with embedded media, so many thanks. You have definitely made my Easter a happy one!