Webmap fails in Shortlist Template?

3480
4
Jump to solution
08-12-2014 07:40 PM
BryanPrice1
New Contributor II


Hi there,

I'm trying to get a shortlist template to work for the following webmap

http://www.arcgis.com/home/webmap/viewer.html?webmap=486efd11ce344810ab2e92f63d77548f

which is a straight copy of the example in the sample. However I get the following error in the logs when I try loading it?

"Map creation failed: " "{}"

Other webmaps i.e. the one the template came with work fine?

Any suggestions would be greatly appreciated.

Cheers,

Bryan

0 Kudos
1 Solution

Accepted Solutions
RiyasDeen
Occasional Contributor III

Hi Bryan,

You have got a point feature layer added in your web map. But the web map used in the sample has a csv or shape file added to the web map.

Refer to short list tutorial Shortlist Tutorial | Story Maps | Story Maps‌ step 4, i suspect you have not done that for your web map.

I managed to get the map visible by adding if else block around line 639 to 660 in app\main.js. Digging the code further, it's looking for a layer added through step 4 in the tutorial.


Untitled.png

View solution in original post

4 Replies
RiyasDeen
Occasional Contributor III

Hi Bryan,

You have got a point feature layer added in your web map. But the web map used in the sample has a csv or shape file added to the web map.

Refer to short list tutorial Shortlist Tutorial | Story Maps | Story Maps‌ step 4, i suspect you have not done that for your web map.

I managed to get the map visible by adding if else block around line 639 to 660 in app\main.js. Digging the code further, it's looking for a layer added through step 4 in the tutorial.


Untitled.png

BryanPrice1
New Contributor II

Thanks Riyas!  You are absolutely correct you have to import a shapefile or CSV into the webmap for it to work correctly.

It would be good if you could use a point feature service though. I'll try to add this to the main.js.

Cheers,

Bryan

0 Kudos
RiyasDeen
Occasional Contributor III

Hi Bryan,

No doubt, you can modify the main.js to work with your feature service. Good luck, do post you code back in the forum, sure there are others who'll be interested in that.

Regards

Riyas

0 Kudos
RupertEssinger
Frequent Contributor

Sorry about the limitation guys. Riyas is right. Currently feature services are not supported for the point layers that define the tabs and contain the places of interest in the Shortlist. They have to be feature collections created by uploading a shapefile or CSV file. I'll update the tutorial step 4 to make that clearer too. Feature services are also not supported for clickable supporting layers that can optionally be added into a Shortlist (like the light rail line, light rail station, parks, etc in this example: http://storymaps.esri.com/stories/shortlist-phoenix/

0 Kudos