I wish to embed multiple storymaps on one page.
The storymaps are not mine, they are created by various organizations I work with.
Multiple iframes make for a very slow-loading page. Ideally, I would do as I've already done with YouTube videos, show a thumbnail or default image, then when the user clicks, load the iframe.
Do such images exist? Can the image URL be figured out from the Storymap ID?
Solved! Go to Solution.
Yep! Every story (and every item in ArcGIS) has a thumbnail image. Sounds like you are a developer, so you can request the URL for the thumbnail of the item using the API call described below.
https://developers.arcgis.com/rest/users-groups-and-items/item.htm
For example, it's typically the URL below, where the item ID for the story would be swapped in for the id in the link below.
I'm not 100% certain that the thumbnail name will be the same in every case, but I believe most are like that. It should be easy enough to test for a few stories when you test your page.
Yep! Every story (and every item in ArcGIS) has a thumbnail image. Sounds like you are a developer, so you can request the URL for the thumbnail of the item using the API call described below.
https://developers.arcgis.com/rest/users-groups-and-items/item.htm
For example, it's typically the URL below, where the item ID for the story would be swapped in for the id in the link below.
Perfecto!
I will explore the API but can I assume that the URL can be constructed as you show above?
Also, I am not an ESRI customer (but I have a lot of friends who are)
I'm not 100% certain that the thumbnail name will be the same in every case, but I believe most are like that. It should be easy enough to test for a few stories when you test your page.
I'll test that and report back here. Thanks!
So far, 17 of 20 were okay.
Strangely, the erroneous image URLs were the ones given in the meta tags of the HTML page. They just didn't work.
I'm getting set up with the API, thanks again.