Select to view content in your preferred language

Can no longer embed AGOL maps in my Google Site

1853
4
Jump to solution
01-04-2014 06:34 PM
SteveCline
Regular Contributor
I have been using embedded maps with my Google Site for quite a while: https://sites.google.com/a/weldre4.k12.co.us/mr-cline-s-world-geography/maps

About a month ago it suddenly stopped working, maps that had previously been working stopped.  Did something in AGOL chage?
Tags (2)
0 Kudos
1 Solution

Accepted Solutions
MikeMinami
Esri Notable Contributor
Nothing has changed for ArcGIS Online.

When I look at the source of your page and find the embed code, it looks like you have a custom iframe or something? I'm not sure if that is an issue. Your embed code isn't the same as the embed code I generate from arcgis.com. I generated this, and it works.

[HTML]<iframe width="500" height="400" frameborder="0" scrolling="no" marginheight="0" marginwidth="0"

src="http://whsgis.maps.arcgis.com/home/webmap/embedViewer.html?webmap=fdaf9657b8e9401e93686b5a4d7cbf41&e...

14.1655,37.4254,78.6154"></iframe><br /><small><a href="http://whsgis.maps.arcgis.com/home/webmap/viewer.html?

webmap=fdaf9657b8e9401e93686b5a4d7cbf41&amp;extent=-173.5121,-14.1655,37.4254,78.6154" style="color:#0000FF;text-align:left"

target="_blank">View Larger Map</a></small>[/HTML]

Also, I'm using Chrome Browser and seeing this error message:

[blocked] The page at 'https://mj89sp3sau2k7lj1eg3k40hkeppguj6j-a-sites-opensocial.googleuserconte???52BVkmvOdJDPAbP88tSjO4fgqG5%26c%3Denterprise&rpctoken=-5791377167792537613' was loaded over HTTPS, but ran insecure content from 'http://whsgis.maps.arcgis.com/home/webmap/templates/OnePane/basicviewer/emb???layscalebar=true&displaylegend=true&displaydetails=true&displaysearch=true': this content should also be loaded over HTTPS.


Your website is SSL enabled, but the maps are being accessed without SSL, which the browser blocks because it's not secure. This is probably the problem. Perhaps you can try changing the embedded URLs to https.

thanks,

Mike

View solution in original post

0 Kudos
4 Replies
MikeMinami
Esri Notable Contributor
Nothing has changed for ArcGIS Online.

When I look at the source of your page and find the embed code, it looks like you have a custom iframe or something? I'm not sure if that is an issue. Your embed code isn't the same as the embed code I generate from arcgis.com. I generated this, and it works.

[HTML]<iframe width="500" height="400" frameborder="0" scrolling="no" marginheight="0" marginwidth="0"

src="http://whsgis.maps.arcgis.com/home/webmap/embedViewer.html?webmap=fdaf9657b8e9401e93686b5a4d7cbf41&e...

14.1655,37.4254,78.6154"></iframe><br /><small><a href="http://whsgis.maps.arcgis.com/home/webmap/viewer.html?

webmap=fdaf9657b8e9401e93686b5a4d7cbf41&amp;extent=-173.5121,-14.1655,37.4254,78.6154" style="color:#0000FF;text-align:left"

target="_blank">View Larger Map</a></small>[/HTML]

Also, I'm using Chrome Browser and seeing this error message:

[blocked] The page at 'https://mj89sp3sau2k7lj1eg3k40hkeppguj6j-a-sites-opensocial.googleuserconte???52BVkmvOdJDPAbP88tSjO4fgqG5%26c%3Denterprise&rpctoken=-5791377167792537613' was loaded over HTTPS, but ran insecure content from 'http://whsgis.maps.arcgis.com/home/webmap/templates/OnePane/basicviewer/emb???layscalebar=true&displaylegend=true&displaydetails=true&displaysearch=true': this content should also be loaded over HTTPS.


Your website is SSL enabled, but the maps are being accessed without SSL, which the browser blocks because it's not secure. This is probably the problem. Perhaps you can try changing the embedded URLs to https.

thanks,

Mike
0 Kudos
SteveCline
Regular Contributor
That is the problem.  In my organizational account I had to make some changes.  Here is what I did:

1. In Arcgis.com, log in and go to "My Organization"
2. Go to "Edit Settings"
3. Go to the Security tab.
4. See if the box marked "Allow access to the organization through SSL only" is checked.
5. Scroll to the bottom and click the Save button.

Now when it produces the code it says https instead.  Google must have changed its security settings last month.  Embedding a new map works.

As you were replying to this I also received a reply from ESRI tech support identifying the same issue.  Thanks for your help.
MikeMinami
Esri Notable Contributor
Steve,

You don't necessarily need to toggle your organization to enable SSL, unless you want to. There is a small overhead with SSL. It also means all request are sent over HTTPS. You can simply modify your embed code and change http to https for accessing your organization, for instance, https://whsgis.maps.arcgis.com...

Thanks,

Mike
0 Kudos
StephenBunker
New Contributor
I was able to do a embed my AGOL maps (including story maps) into my google site.
1. Open your Arc Gis map.
2. Share the map and then click the "Embed in Website" button.
3. Copy the iframe html tag given
4. Go to you google site and click the "HTML" tool
5. Paste the iframe text.
6. Find the http urls and change them to https

You can also embed a story map.
1. Create your story map
2. Preview the story map and copy the url (not the bit.ly short cut)
3. Select "Insert" menu> "more gadgets..."> "Include Gadget (iframe)"
4. Click the "Select button"
5. In the "URL to content" field past the url and then change the url from http to https