Feature #17289
closedCustom embed
0%
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
Updated by Boone Gorges almost 2 years 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?
Updated by Laurie Hurson almost 2 years 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!
Updated by Boone Gorges almost 2 years 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.
Updated by Laurie Hurson almost 2 years 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/
Updated by Boone Gorges almost 2 years 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.
Updated by Laurie Hurson almost 2 years 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!