Select to view content in your preferred language

This Map is not Available Message

2250
23
12-08-2010 01:30 PM
DonCopple
Deactivated User
Hi I have built a map on ArcGIS Online, shared it with Everyone.  I am trying to embed it in a website now, but am getting the Map is not available in the frame.  I click the chainlink in the upper right side of the map, and then copy the html code onto my webpage.  It's is like it is working for a few minutes at pulling it up, but then is just white with that message.  Anyone else figure a work around?

Thanks.....
Tags (2)
0 Kudos
23 Replies
MikeMinami
Esri Notable Contributor
Can you share the URL to your web map?

Thanks,

Mike
0 Kudos
DonCopple
Deactivated User
Yes, I am building this one on the ESRI.com webmap interface.  I clicked the chainlink "share" icon and this is the url link that I can email to others: http://bit.ly/fLc2gc

Now, when I click that chainlink for share again and I select embed in my web site.  I copy that html code into my webpage, but the frame comes back with the message "This Map is not Availible".  So it looks like the frame is working, but something in the connection within that html code is not working.  Seems like this part should be pretty simple, and I think that is how ESRI meant it to be.  I have made the map public to share as well.

Thanks
0 Kudos
MikeMinami
Esri Notable Contributor
You've found a bug! We have a problem displaying image services when embedded. This won't be fixed until we release the next update to arcgis.com early next year. The workaround is to remove the image service layer:

https://gisservice.mt.gov/arcgis/rest/services/NAIP/ImageServer

Sorry for the inconvenience.

Mike
0 Kudos
DonCopple
Deactivated User
Thanks for the update, unfortunately that is what I am wanting to serve for now, so will have to use java scripting, or silverlight ,etc and create a web-app.  Was just trying the simple way first, so I will look forward to the next release when this if fixed.  Glad to be of service to help you find the bugs.:)
0 Kudos
TimSpivey
Frequent Contributor
You've found a bug! We have a problem displaying image services when embedded. Mike


Mike - I've stored 2 maps on ArcGIS.com.
One uses the ArcGIS.com imagery basemap, the other uses the Bing Roads basemap.
I shared both publicly, and selected Embed in Personal Site.
I then copied each html code and pasted it into an e-mail.

When I click on the link to the imagery map, it eventually loads, though it briefly says "this map is not available"

When I click on the link to the roads-only map, it says "this map is not available" and NEVER loads.

What gives?

here's the code for the roads-only map -

<iframe width="500" height="400" frameborder="0" scrolling="no" marginheight="0" marginwidth="0" src="http://www.arcgis.com/home/webmap/embedViewer.html?webmap=17bc60b3d4084eaab11c42406e9ff186&bing=true..."></iframe><br /><small><a href="http://www.arcgis.com/home/webmap/viewer.html?webmap=17bc60b3d4084eaab11c42406e9ff186" style="color:#0000FF;text-align:left" target="_blank">View Larger Map</a></small>

and for the imagery map -

<iframe width="500" height="400" frameborder="0" scrolling="no" marginheight="0" marginwidth="0" src="http://www.arcgis.com/home/webmap/embedViewer.html?webmap=8c12042023c1402bb6eccfbca15e273c&zoom=true...">
0 Kudos
MikeMinami
Esri Notable Contributor
Looks like there are some extra blank spaces in your text. I'm not sure how they got embedded into the embed code.

In the first case, look for "webmap=" and remove the space between the e and 9, then again between the 8 and 6.

In the second case, there is a missing closing iframe at the end...append this to the end "</iframe>" without the quotes.

Here they are working...
http://mikeandrika.blogspot.com/

Good luck,

Mike
0 Kudos
TimSpivey
Frequent Contributor
mikem;67450 wrote:
Looks like there are some extra blank spaces in your text./QUOTE]


Mike - still no luck on the roads-only layer.

Here's the code, copied fresh from ArcGIS.com -
<iframe width="500" height="400" frameborder="0" scrolling="no" marginheight="0" marginwidth="0" src="http://www.arcgis.com/home/webmap/embedViewer.html?webmap=17bc60b3d4084eaab11c42406e9ff186&bing=true..."></iframe><br /><small><a href="http://www.arcgis.com/home/webmap/viewer.html?webmap=17bc60b3d4084eaab11c42406e9ff186" style="color:#0000FF;text-align:left" target="_blank">View Larger Map</a></small>

There appear to be 2 links within the above code - the first to the map as it should appear, the second one to the page where I can build a map.
Should the entire block of code be added to a web page, or where should it be broken into 2 blocks?

Thanks again.
0 Kudos
MikeMinami
Esri Notable Contributor
No, it should only be one block of code. I'm not sure how the extra spaces are getting introduced when you copy and paste the code block.

What you should see in the dialog window is this code. The bold red text below shows where an extra space is getting inserted, but shouldn't. Compare it to the code you pasted in. I've removed it here.

<iframe width="500" height="400" frameborder="0" scrolling="no" marginheight="0" marginwidth="0" src="http://www.arcgis.com/home/webmap/embedViewer.html?webmap=17bc60b3d4084eaab11c42406e9ff186&amp;bing=true"></iframe><br /><small><a href="http://www.arcgis.com/home/webmap/viewer.html?webmap=17bc60b3d4084eaab11c42406e9ff186" style="color:#0000FF;text-align:left" target="_blank">View Larger Map</a></small>

The short term solution is to just remove the spaces and it should just work. When I open your map and copy the embed code, I don't get any extra spaces in the embed code. What browser and version are you using? Where are you copying the code into? Maybe there are some differences.

When you look at the code in the dialog box in arcgis.com, are there spaces already there for you? I'm guessing not.

Another option would be to try pasting the code into Notepad and seeing what it looks like. Are there extra spaces?

Thanks,

Mike
0 Kudos
TimSpivey
Frequent Contributor
... extra spaces ...


Mike - forget the extra spaces, they're being added when I paste my code into the ArcGIS forum chat window. When I look at the code I have on my computer, there are no spaces.

So we're back to square 1.

FYI, here's what I've been doing.
1 - publish & share map
2 - Copy code from "embed in web site" window, the code we've been talking about
3 - Paste that code into a new e-mail message
3a - Save the e-mail as a draft (but not sent)
4 - Open the e-mail message, Ctrl-click to test the links
5 - The one block of code appears to have 2 links, see attached JPEG "roads_code"
6 - When I click on the first link, it takes me to the site shown in attached JPEG "roads2"
6a - when I click on the second link, it takes me to the site shown in attached JPEG "roads1"
7 - Here are the 2 URLs, copied from Firefox -
http://www.arcgis.com/home/webmap/embedViewer.html?webmap=17bc60b3d4084eaab11c42406e9ff186&amp;bing=...

http://www.arcgis.com/home/webmap/viewer.html?webmap=17bc60b3d4084eaab11c42406e9ff186

Thanks
0 Kudos