Do storymaps have a thumbnail or cover image?

895
5
Jump to solution
12-18-2020 10:30 AM
Ken__D
by
New Contributor II

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?

Tags (2)
0 Kudos
2 Solutions

Accepted Solutions
OwenGeo
Esri Notable Contributor

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.

https://www.arcgis.com/sharing/rest/content/items/c87bc0a59c0144008e25d50a5dd1b192/info/thumbnail/ag...

 

Owen Evans
Lead Product Engineer | StoryMaps

View solution in original post

0 Kudos
OwenGeo
Esri Notable Contributor

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.

Owen Evans
Lead Product Engineer | StoryMaps

View solution in original post

0 Kudos
5 Replies
OwenGeo
Esri Notable Contributor

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.

https://www.arcgis.com/sharing/rest/content/items/c87bc0a59c0144008e25d50a5dd1b192/info/thumbnail/ag...

 

Owen Evans
Lead Product Engineer | StoryMaps
0 Kudos
Ken__D
by
New Contributor II

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)

0 Kudos
OwenGeo
Esri Notable Contributor

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.

Owen Evans
Lead Product Engineer | StoryMaps
0 Kudos
Ken__D
by
New Contributor II

I'll test that and report back here. Thanks!

0 Kudos
Ken__D
by
New Contributor II

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.

0 Kudos