Select to view content in your preferred language

Application ID in the index.html file is ignored

2422
4
Jump to solution
12-02-2016 06:04 AM
VojtěchBlažek1
Regular Contributor

Hi I know, this question were discused many times, but I didnt find a solution.

I made a story map journal :

http://blazek.maps.arcgis.com/apps/MapJournal/index.html?appid=23cf12230c264896aa369f72f2d6f11d 

Everything works perfect. Then I want to run this app without any changes on my web server http://studio-vojta.czweb.org/ 

I downloaded a zip file from GIThub -> unzip -> change index.html -> upload to my web server

And stil an error (mistake) - google translate:

"An error has occurred
The URL parameters is not specified identifier Web mapping application (? = AppID). In development mode is to configure the application ID in the index.html file is ignored."

but in index.html is ID of app:

var configOptions = {
// Enter an application ID created through the Map Journal builder
appid: "23cf12230c264896aa369f72f2d6f11d",
// Optionally to secure Journal's access, use an OAuth application ID (example: 6gyOg377fLUhUk6f)
// User will need to sign-in to access the viewer even if your application is public
oAuthAppId: "",
// Optionally, to use the appid URL parameter, configure authorizedOwners to reference
// members whose stories can be viewed by this storytelling app.
// To authorize stories owned by...
// specific members: use ["member"] or ["member1", "member2", ...]
// any ArcGIS member: use ["*"]
// any member of one or more organizations: use ["[orgID]"] or ["[orgID1]", "[orgID2]", ...] (Note the use of brackets in this case, e.g., ["[nzS0F0zdNLvs7nc8]"])
// You can get your orgID by going to My Organization and clicking Find...The most viewed items in the organization.
// Your orgID will be shown in the search box.
authorizedOwners: [""]
};

What do I wrong? Thanks

Files on my web

0 Kudos
1 Solution

Accepted Solutions
OwenGeo
Esri Notable Contributor

Hi Vojtěch,

Looks like you're running the source code (that's what we mean by "development mode") rather than compiled code.

You can either build a compiled version by yourself or just download it from the link in step 1 of the Instructions section of the GitHub page. You really only need the source code if you are customizing the app. If you just want to host an non-customized version of the app on your own server download the compiled app.

I've included screenshots of the two download links on the Map Journal GitHub page below.

Owen

Owen Evans
Lead Product Engineer | StoryMaps

View solution in original post

4 Replies
OwenGeo
Esri Notable Contributor

Hi Vojtěch,

Looks like you're running the source code (that's what we mean by "development mode") rather than compiled code.

You can either build a compiled version by yourself or just download it from the link in step 1 of the Instructions section of the GitHub page. You really only need the source code if you are customizing the app. If you just want to host an non-customized version of the app on your own server download the compiled app.

I've included screenshots of the two download links on the Map Journal GitHub page below.

Owen

Owen Evans
Lead Product Engineer | StoryMaps
VojtěchBlažek1
Regular Contributor

Awesome, thanks

0 Kudos
VojtěchBlažek1
Regular Contributor

Sorry one more question. I just want to change a color of header #storymapseries 

Its posible just change color in config.js (onn server) or must first download -> customize and after that deploy on server?

I trying change color like in manual: - (I need header white and text black)

themes: [   {     name: "tab-default-1",     // Group of matching theme across layout     group: "default",     themeMajor: "white",     // Header background     header: "#ffffff",     ...   }]

But when I changed config.js in deployed app - nothing happend

Sorry for stupid question but Iam quite new in programming 
0 Kudos
OwenGeo
Esri Notable Contributor

Hi Vojtěch,

It looks like your code didn't get formatted well, so I'm not exactly sure. Some parts appear to be commented out (the "//" denotes comments), so they will be ignored. Maybe that is the issue? Any changes you make to the code on the server to config.js should be applied the next time you load the app. Be sure to clear your browser cache or do a forced refresh to make sure you are loading the app from the server and not your local cache. To force a refresh on Windows Chrome use SHIFT+F5, for example.

In the next ArcGIS Online release (late Feb 2017) you'll be able to change theme colors in Map Series (and Map Journal) more easily whether you are hosting your own copy of the app or not. Watch for a blog post about it on our developer blog after the release.

Owen

Owen Evans
Lead Product Engineer | StoryMaps