Project

General

Profile

Actions

Feature #17289

closed

Custom embed

Added by Laurie Hurson over 1 year ago. Updated over 1 year ago.

Status:
Resolved
Priority name:
Normal
Assignee:
Category name:
Shortcodes and embeds
Target version:
Start date:
2022-11-23
Due date:
% Done:

0%

Estimated time:
Deployment actions:

Description

Hi All,

Would it be possible to write a custom embed code for Arc GIS Storymaps. Below is sample Iframe the tool produces and a link.

Story Map embed code: <iframe src="https://storymaps.arcgis.com/stories/7a7a533b184f495c8a83a6a63cad810c" width="100%" height="500px" frameborder="0" allowfullscreen allow="geolocation"></iframe>

link: https://arcg.is/1H9uf5

Thanks,
Laurie

Actions #1

Updated by Boone Gorges over 1 year ago

  • Status changed from New to Reporter Feedback

Yes, we can do something like this.

Could you tell me about the URL you provided? When I visit https://arcg.is/1H9uf5, it resolves to https://storymaps.arcgis.com/stories/7a7a533b184f495c8a83a6a63cad810c. It's easy for me to convert the latter URL to an embed, but the former is more complex - I would need to write a tool that resolves the URL to the full version. Where did you get the short version? Is this something that users are likely to paste into the editor? Would it be OK if we only allowed the long version?

Actions #2

Updated by Laurie Hurson over 1 year ago

Both links were provided by the faculty member.

If the latter is easier to create the embed with, and is the full URL anyway, let's move forward with that.

So yes, lets use the long version:

https://storymaps.arcgis.com/stories/7a7a533b184f495c8a83a6a63cad810c

Thanks!

Actions #3

Updated by Boone Gorges over 1 year ago

  • Category name set to Shortcodes and embeds
  • Status changed from Reporter Feedback to Assigned
  • Assignee set to Boone Gorges
  • Target version set to 2.0.13

Thanks for confirming. I'll look at this for the next release.

Actions #4

Updated by Laurie Hurson over 1 year ago

Thanks Boone. When is the next release?

The semester ends on 12/13 and the professor is hoping to have students embed their maps as part of the final.

Apologies for such short notice. A plugin we had for this was working fine but then stopped functioning earlier this semester - I think when we updated to the new version of wordpress? https://wordpress.org/plugins/embed-webmap/

Actions #5

Updated by Boone Gorges over 1 year ago

  • Status changed from Assigned to Resolved

Regular maintenance releases are on the second and fourth Tuesday of each month. See https://dev.commons.gc.cuny.edu/release-schedule-and-procedures/ for more details.

I've built the shortcode and embed code in https://github.com/cuny-academic-commons/cac/commit/f2f904ddf9d4ecc064bb6a73ec340284b9e8cba3. To use, put the Storymaps URL its own line in the editor. For greater control over 'height' and 'width', you can also use a shortcode:

[storymaps url="https://storymaps.arcgis.com/stories/7a7a533b184f495c8a83a6a63cad810c" height="800px" width="600px"]

I've deployed this to production for immediate use.

Actions #6

Updated by Laurie Hurson over 1 year ago

Sorry ot ask about release schedule again, I have taken note of this and wont forget next time!

Thanks so much for pushing to production, it is working great and the faculty member will also be very grateful!

Actions

Also available in: Atom PDF