Select to view content in your preferred language

Webmap fails in Shortlist Template?

3642
4
Jump to solution
08-12-2014 07:40 PM
BryanP
by
Emerging Contributor


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
Frequent Contributor

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
Frequent Contributor

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

BryanP
by
Emerging Contributor

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
Frequent Contributor

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
Esri Alum

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