Avoid preloading/duplicating all entries in a series story map

4628
15
03-17-2015 01:56 PM
JonathanZaid
New Contributor III

I have a Series Story Map which has a few entries. Each entry is a map entry, pointing to the same web app. Before the map is functional is fully visualized it looks like each web map for each entry is loaded. I've experimented with different extents for each entry to having the same extent for all entries. Even if the extent is the same, the feature layers for the webmaps, which are identical, are downloaded. The feature layers are not large (about 80k), but download time is 3-5 seconds, and total time to get going is about 10 seconds.

The end result is that the user-experience is not very good, as there is a significant delay.

I've experimented both with the hosted web app, as well as the downloaded template, which has the same results.

Is there anyway I can optimize this somewhere in the downloaded template? I see that everything seems to happen as the result of one atomic call, "arcgisUtils.createMap", and I can't see any options which will help me, but perhaps there is a way around this?

0 Kudos
15 Replies
GregoryL_Azou
Occasional Contributor III

Sorry about your issue, this looks like a bug, if you are using the same webmap in two entries it should only be loaded once. Could you share a link to your app?

0 Kudos
JonathanZaid
New Contributor III

I can't share the link to my app currently, but take a look at one from the ESRI gallery, which demonstrates the same behavior. I've included a screenshot of a firebug trace of the load sequence (I also verified that the parameters were the same on the calls).

Women in GIS: Helping Map a Better World - A story map by Morgan State University

There are a few series of 3 repeated calls to the feature server with the same parameters and same results. multiple_calls_story_map.JPG

0 Kudos
GregoryL_Azou
Occasional Contributor III

That app is based on a template that we have deprecated recently: Side Accordion.

Are you using our new Map Series with the Side Accordion layout or that template? Story Map Series | Story Maps

You should not have that problem with the new Map Series. In the builder if you use the same map across all your entries the map will only be loaded once. Map Series is also preloading maps but it should works better. You can't avoid that preloading by configuration in the builder but this is doable without custom development. Let me know if you are interested.

0 Kudos
JonathanZaid
New Contributor III

We did use the Map Series Builder. I just used that one for convenience since at the moment I can't share the map we are working on. I'll build another simple map using the Series builder template and post it. And yes I am interested in possibly avoiding the preload. We actually are using the downloadable version of the app which I got from git but in any case we get the same result whether referencing the app from the template or directly from AGOL. I'll get back to you with a link to an app that presents this problem.

0 Kudos
GregoryL_Azou
Occasional Contributor III

Ok thanks. That app build using Map Series is behaving well http://storymaps.esri.com/stories/2015/circles/

I confirm that the app that you download from GitHub is what is in ArcGIS Online.

0 Kudos
JonathanZaid
New Contributor III

Hi. Take a look at this.

http://directrelief.maps.arcgis.com/apps/MapSeries/?appid=ba487f357cc940b69b414765ab94153e

In Firefox I see it makes 6 requests to the same feature service with the same parameters and the same output. Different things seem to happen in Chrome and IE.

(Thanks for you helpful responses so far)

0 Kudos
GregoryL_Azou
Occasional Contributor III

Hi,

This seems to be the expected behavior of the ArcGIS for JavaScript API. I'm not able to explain why, I will ask that team.

If I create a sample app that just load the map I obverse the same behavior (ArcGIS API for JavaScript Sandbox).

Whether I add 1 or 10 entries that use the same webmap in the Map Series I see the same number of request.

0 Kudos
JonathanZaid
New Contributor III

Actually I'm not sure if I understand your response. I tried the sandbox example and I even put in my webmap id, but I don't get duplicated calls. When I run it from the series I do get the duplicated calls, and they seem to match the number I had in the series; i.e. in my example there were 6 entries in the series and 6 identical calls. It might be only a firefox problem although I'm not sure.

Thanks for all the help so far.

0 Kudos
GregoryL_Azou
Occasional Contributor III

Interesting, looks like we have different behavior.

Here is what I see in Firefox 36 console for the sandbox with your webmap at two different browser resolution.

0 Kudos