Zum Hauptinhalt gehen

Google Chrome doesn't execute request to download my library.

Kommentare

3 Kommentare

  • Permanently deleted user

    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
  • Permanently deleted user

    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
  • Permanently deleted user

    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

Bitte melden Sie sich an, um einen Kommentar zu hinterlassen.