I have a web map that I have customized to look the way I want. I have this web map embedded on a webpage using an iframe. One of the layers on the embedded map does not look the way it does on the web map on AGOL. I've tried removing the layer and adding it, double checked the layer styling, ensured that effects are not on, etc. (although one odd thing is that every time I toggle off the feature-specific effects, it is back on after I save the web map; not sure if that is making any difference). I can't figure out why this one layer looks different. Any help much appreciated.
Here is how it looks in the web map:
And here is how it looks embedded:
And here is the code within the iframe:
<iframe frameborder="0" height="600" marginheight="0" marginwidth="0" rel="border: 1px solid #cccccc;" scrolling="no" src="//cdfw.maps.arcgis.com/apps/Embed/index.html?webmap=1e6386e0c3cb458e847455336b9be9a0&extent=-127.3743,34.5563,-114.4214,39.8127&zoom=true&previewImage=false&scale=true&legend=true&disable_scroll=true&popup_sidepanel=true" style="border: 1px solid #cccccc;" title="Sportfish and MPA Summary Regulations - 2022-2023 Season-220401- Copy For MPA Project_2 - STATEWIDE" width="100%"></iframe>
Hello! Not sure why it is displaying differently, but I did notice that you are using a depecated embed application. If you use one of the newer embed workflows outlined here: https://doc.arcgis.com/en/arcgis-online/share-maps/embed-maps-groups.htm it should display as expected.
Hi there, thanks for the reply. Are iframes no longer supported as a way to embed maps?
How would I use this new workflow if I don't have access to change the head of the webpage? The map is embedded in a web page that is basically already set up and I just add content into modules.
Hi, in that case the second option will work best:https://doc.arcgis.com/en/arcgis-online/share-maps/embed-maps-groups.htm#:~:text=map%20to%20appear.-... If you create an instant app using your map, you will be able to generate an embeddable snippit that uses iframes. We are still looking into supporting iframes in the first worklow.
You can find the iframe code here in the Basic/Media instant app.
Any idea when iframes might be supported again for a basic web map? I remember looking into creating an Instant App when I first developed this web map, and found that I was unable to customize it the same way as the web map, which is why I continued in that direction.
Hi, no firm date yet, but hoping by the end of the year or early next year. Just ouf of curiosity as we work to imrpove the embed experience- can you share a bit about what customization you were hoping to do with the map?