HTML5 viewer shortened URLs are not launching
I have edited the index.html file for my HTML5 viewer to shorten the URLs for our HTML5 sites according to the knowledge base article in the support site. Here is how that code looks:
var viewerConfig = {
"configurations": {
"default": "Resources/Config/Default/" + shellName + ".json.js",
"taxassessormobile":"http://server.domain.com/Geocortex/Essentials/REST/sites/TaxAssessor/viewers/TaxAssessorMobile/virtualdirectory/Resources/Config/Default/",
"taxparcelshtml5":"http://server.domain.com/Geocortex/Essentials/REST/sites/TaxParcels/viewers/TaxParcelsHTML5/virtualdirectory/Resources/Config/Default/",
"dsc":"http://server.domain.com/Geocortex/Essentials/REST/sites/DSC/viewers/GVHDSC/virtualdirectory/Resources/Config/Default/",
"firemarshal":"http://server.domain.com/Geocortex/Essentials/REST/sites/FireMarshal/viewers/GVHFireMarshal/virtualdirectory/Resources/Config/Default/"
+ shellName + ".json.js"
},
"viewerConfigUri": null
};
For some reason, the only entry that works is the last one for firemarshal and it doesn't matter what order I put them in. Only the last one will work. I can launch every single HTML5 viewer from Essentials Manager but only the last entry in the index.html file will work with the shortened URL.
0
-
I think you need the shellName on each entry.
var viewerConfig = {
"configurations": {
"default": "Resources/Config/Default/" + shellName + ".json.js",
"taxassessormobile":"http://server.domain.com/Geocortex/Essentials/REST/sites/TaxAssessor/viewers/TaxAssessorMobile/virtualdirectory/Resources/Config/Default/" + shellName + ".json.js",
"taxparcelshtml5":"http://server.domain.com/Geocortex/Essentials/REST/sites/TaxParcels/viewers/TaxParcelsHTML5/virtualdirectory/Resources/Config/Default/" + shellName + ".json.js",
"dsc":"http://server.domain.com/Geocortex/Essentials/REST/sites/DSC/viewers/GVHDSC/virtualdirectory/Resources/Config/Default/" + shellName + ".json.js",
"firemarshal":"http://server.domain.com/Geocortex/Essentials/REST/sites/FireMarshal/viewers/GVHFireMarshal/virtualdirectory/Resources/Config/Default/"
+ shellName + ".json.js"
},"viewerConfigUri": null
};0 -
Thanks that was it.
0
Please sign in to leave a comment.
Comments
2 comments