Google Chrome doesn't execute request to download my library.
Hello,
The google chrome, current version, do not send the request to download my library just them modules are not loaded. In Firefox works perfectly. Any idea what might be happening?
"defaultLibraryId": "Mapping",
"libraries":
[
{
"id": "Framework.UI",
"uri": "Resources/Compiled/Framework.UI.js",
"locales":
[
{
"locale": "en-US",
"uri": "Resources/Locales/Framework.UI.en-US.json.js"
}
]
},
{
"id": "Mapping",
"uri": "Resources/Compiled/Mapping.js",
"locales":
[
{
"locale": "en-US",
"uri": "Resources/Locales/Mapping.en-US.json.js"
}
]
},
{
"id": "Gga",
"uri": "Libraries/Gga/Compiled/Gga.js"
}
], ...
The log(shift+ESCx2) also does not show any error or loading. Firefox log working perfectly, the same address and code :
info 13:33:06.996 Processing downloaded library 'Gga' for application '-236201859'.
info 13:33:06.997 Initializing module 'ZoomBackZoomForward'.
info 13:33:06.999 Initializing module 'ZoomToScale'.
Thanks!
-
Hello,
I verified that the problem is in calling this method: geocortex.framework.notifyLibraryDownload ("Gga"); //Gga.js
Is there any way to check if my library was loaded? If not, how do I solve(reload) the problem?
Ty!
0 -
Hi Sonia,
I'm not sure what you mean regarding the call to notifyLibraryDownload. That call is simply what kicks off the process of initializing all of your library's components.
I had a look over your sample code, and in fact your library was being downloaded correctly in all browsers. I used a tool called Fiddler to do this. It's a very useful tool and I highly recommend it.
It turns out that the problem is not that the library is not being loaded, but rather that the module code in Gga.js was trying to access the map before it was initialized or even available at all.
Since your library is loading before the log module from Mapping.js, the log messages weren't appearing. I added an event subscription to TraceEvent in index.html, and in doing so I noticed the problems in the OverViewMap and zooming view models.
I've sent over some sample code and described to Jeff how I have fixed these things. The OverViewMap module now loads and displays the overview map, as intended.
-Jason
0 -
The code that you sent works perfectly. Thank you!
...
constructor: function () {
if (!this.app.site || !this.app.site.isInitialized) {
this.app.eventRegistry.event("SiteInitializedEvent").subscribe(this, this.setup);
}
else {
this.setup();
}
}, ...Thank you also for the trace snippet!
// Trace - INDEX.HTML!
viewer.eventRegistry.event("TraceEvent").subscribe(this, function (evt) {
console .log(evt.message);
});Cya!
0
Please sign in to leave a comment.
Comments
3 comments