Loading a Story Map Shortlist in mobile mode?

1198
6
Jump to solution
05-29-2017 03:33 PM
HelenCooper
Occasional Contributor III

Hi, 

I've put together a Story Map using the Shortlist Story builder beta (http://arcg.is/2orNdqc ) .  The map looks great, but there are a lot of images, and it takes a while to load.  Is there a way of forcing the map to load in mobile mode irrespective of the device used to view?   

Here's the map embedded in a web page:

E17 Art Trail – 2017 

Many thanks in advance for any help, 

Helen

Tags (1)
0 Kudos
1 Solution

Accepted Solutions
DarrenWiens2
MVP Honored Contributor

Actually, on second thought, the original line I referenced looks for any value passed in the url for 'forceMobile', so when you load the iframe, just add a url parameter:

https://mapitconsulting.maps.arcgis.com/apps/Shortlist/index.html?appid=5d8042b827c54cacb6805b44d11f... 

View solution in original post

6 Replies
DarrenWiens2
MVP Honored Contributor

I don't know if there's a way to do this through the builder (I doubt it), but I believe you can kind of hack it by changing line 971 in src/app/storymaps/common/Core.js

from...

forceMobile = _urlParams.forceMobile !== undefined || app.indexCfg.forceMobile;

to...

forceMobile = true;

But if you're not building the web app from source, it's a pretty long way around to add this functionality.

0 Kudos
HelenCooper
Occasional Contributor III

Hi Darren,

Thanks for that, I'm hosting it on AGOL (and have used the builder) so I don't think I can change this.  Thanks though.  

Helen

0 Kudos
DarrenWiens2
MVP Honored Contributor

Actually, on second thought, the original line I referenced looks for any value passed in the url for 'forceMobile', so when you load the iframe, just add a url parameter:

https://mapitconsulting.maps.arcgis.com/apps/Shortlist/index.html?appid=5d8042b827c54cacb6805b44d11f... 

HelenCooper
Occasional Contributor III

Perfect, that URL parameter does exactly what I was hoping for.  Thank you.

Helen

0 Kudos
NancyChurch
New Contributor

Check and make sure your photos are all sized under 400kb   ... that definitely slows down the story map

HelenCooper
Occasional Contributor III

Thanks Nancy.

0 Kudos