Select to view content in your preferred language

How to get Journal Map to run on non-AGOL server?

4192
2
01-20-2015 02:06 PM
DennisWard
Deactivated User

Working from a Journal Map that was created in AGOL, I'm attempting to create a more customized version using code esri has made available on github (  Esri/map-journal-storytelling-template-js · GitHub  ). 

Although the AGOL version works fine ( https://neon.maps.arcgis.com/apps/MapJournal/?appid=e1fbef1ed7e147cd9f76c24587c19740 ), adding the same appid to line 38 of the index.html file results in a "Web Mapping Application identifier not specified in index.html" error. 

I'm running MAMP on my laptop as a local webserver -- my normal development environment. View Source shows " appid: "e1fbef1ed7e147cd9f76c24587c19740", " on line 38. 

Any suggestions?  I am well and truly stumped at this point!

 

Ultimately, my goal is to add a reference map in the upper left corner similar to this: The Age of Megacities . I get that I'll need to edit some JS and CSS, but I'm stuck until I get the original up and running on my dev server.

Can someone point me in the right direction?

0 Kudos
2 Replies
GregoryL_Azou
Deactivated User

Sorry the documentation was not precise enough. Please see the updated documentation Esri/map-journal-storytelling-template-js · GitHub‌. In development mode configuring index.html to specify the appid is not supported. Instead you have to use the URL parameter appid.

We recently pushed on GitHub the code of The Age of Megacities  at https://github.com/ssylvia/growth-of-cities. That app is not officially supported but you can find the code behind the context map in this file growth-of-cities/ContextMap.js at master · ssylvia/growth-of-cities · GitHub

DennisWard
Deactivated User

Thanks for the updated documentation, Gregory -- it looks to be just what I needed. 

I'm also excited to see the growth of cities code.  My day just got easier...

Cheers, Dennis

0 Kudos