Zum Hauptinhalt gehen

Kommentare

17 Kommentare

  • Permanently deleted user

    Hi Mike,

    I looked into your site and noticed that the request that was taking longest for me was the f=json request to the essentials site itself. I have an inkling of what might be causing this but I can't be 100% sure until I talk with the developer. 

    The dev is unfortunately away right now, but once he is back I will discuss with him and see if we can find a solution to your issue. 

    Cory Purnell

     

    Latitude Geographics Quality Assurance Team
    0
  • Permanently deleted user
    Cory,

     

    Did you ever get the chance to talk to the developer?  This is VERY frustrating.  Our main site was getting slow, so I decided to create a limited, fast, easy to use site to take pressure off our main site.  After the upgrade, it now takes twice as long to open...this doesn't seem like progress to me...
    0
  • Nelson Dobbs
    We are having the same issue here.  Any progress on this Cory?
    0
  • Permanently deleted user

    Hi Mike (and Nelson!),

    Sorry I couldn't get back to you sooner, my suspicion was around the f=json request on the viewer name. I had thought that this was related to a security change but it turned out to be related to the implimentation of short urls. 

    On Mike's site that request is taking ~ 14 seconds for me, which seems to be the culprit of the long loading times. 

    I haven't been able to replicate this problem with one of my sites, but I believe the adding the viewer to your ViewerSettings.json.js could completely eliminate the problem. How to do this is outlined in section 12.2 of the admin guide. It is a bit to set up but I believe it will help.

    The gist of it is to add the global id and the url to the viewer into the ViewerSettings.json.js, my viewer settings looks like the following: 

    { "viewerSettings": [ { "id": "test", "url": "http://cpurnell-gel2.latitudeqa.com/Geocortex/Essentials/REST/sites/Offline_Replicas/viewers/Offline_Replicas/virtualdirectory/Resources/Config/Default", "securityUrl": "" } ], "endpoints": [ { "name": "Default", "externalUrl": "/Geocortex/Essentials/REST/viewers/" } ] }

    In which I reference my viewer by the following URL: http://cpurnell-gel2.latitudeqa.com/Html5Viewer/index.html?viewer=test

    Let me know, if this works for you. If not we can look further into the issue.

     

    Cory Purnell

     

    Latitude Geographics Quality Assurance Team
    0
  • Permanently deleted user
    Cory,

     

    I already have global IDs set for all of my HTML5 sites.  There was an issue of the Splash Screen not displaying if I still had my short URLs set up in the Index.html.  I was told yesterday by one of your support staff (Mike Ketler) helping with a different issue that this is only a problem if you have a number of HTML5 sites (I have 10).  I don't remember exactly what the issue was, but apparently, before opening, all sites are looked at in some way.  I believe it was something related to security, but could be wrong.

     

    Mike
    0
  • Nelson Dobbs
    Cory,

     

    This does work for us, our problem is when going to configbase= from the Site List or the link in the Edit Viewers tab in Manager it tries to resolve to the Global Unique ID automatically generated.  When we have a lot of developers in here creating test sites it can be a headache to have to manage this ViewerSettings.json.js file.

     

    Also, I've seen my site take up to 2 minutes to launch, i've had it fail to initialize and even had the site go to the default sample site before.  And as Mike said above, it seems the problem is when there are multiple viewers/sites.

     

    Thanks for checking into this.

     

    Nelson Dobbs
    0
  • Permanently deleted user
    Cory,

     

    Sorry, didn't realize what you were proposing was different than what I had already done.  When I try it though, it gets hung up on the Splash screen.  When I do F12, I get the following:

     

     HTTPS security is compromised by http://gedemo.geocortex.com/Geocortex/Essentials/Prod/REST/sites/World_Cities?f=json&deep=true&dojo.preventCache=1460992714731&CallBack=dojo.io.script.jsonp_dojoIoScript4._jsonpCallback

     

    I have SSL set up on my site - does your solution still work with SSL?  I'm going back to the original, so folks can access my site, but if you need to test, I can put it back when you want to look at it...

     

    Nelson,

     

    Boy, I thought my sites were slow!  Are you using permissions on your sites?  This was an earlier issue before 2.6 (not sure if it got fixed in 2.6) that caused slowdowns on my HTML5 sites before.  For some reason, all tiles in cached aerials were being included as layers, and security has to look at all layers before it can draw.  Going into Map Services tab and removing the tiles made mine go faster.  I also try not to use permissions.  This also caused the basemap sliders not to work well.
    0
  • Nelson Dobbs
    We are using permissions, mainly to see who is using what tool and how often.  Also we use their username to gather AD attributes (email, phone number) when running workflows, so all of our sites have permissions enabled.  We haven't had any issues with the cached layers causing any problems for us and basemap sliders work fine.

     

    My issue is related to the automatic Global Unique ID being assigned.  When you go to the Index.html for your viewer, it looks at the URL Parameters and if it finds "configbase=" it will try to assign a Global Unique ID for you with ("SiteID"."ViewerID") and redirect your URL to look like this index.html?viewer=siteid.viewerid instead of the longer configbase URL.  Once i add my sites to the ViewerSettings.Json.js file like Cory mentioned and hit that Viewer ID instead i get my sites loading in under 10-15 sec.
    0
  • Permanently deleted user
    Are you using SSL?  Cory's fix didn't seem to work for me...

     

    In terms of the automatic Global Unique ID being assigned, have you set the Global Unique ID on the Viewer Info tab in manager when you edit the viewer?  Are you saying it is overwriting that value?User-added image
    0
  • Permanently deleted user
    Just to make sure I didn't type in anything wrong, this is what my viewersettings.json.js looks like:

     

     

      "viewerSettings": [

     

     {

     

      "id" : "Parcel",

     

      "url": "https://maps.srcity.org/Geocortex/Essentials/REST/sites/Parcel_Viewer/viewers/Parcels/virtualdirectory/Resources/Config/Default",

     

      "securityUrl: ""

     

     }

     

      ],

     

      "endpoints": [

     

        {

     

          "name": "Default",

     

          "externalUrl": "/Geocortex/Essentials/REST/viewers/"

     

        }

     

      ]

     

    }

     

    Where "Parcel_Viewer" is my site name, "Parcels" is my Viewer name (folder name under Viewers folder).  I named my ID as "Parcel" which is what I named it in Manager in Viewer Info...  Do I have this correct?  Should the ID be something different than what I named it in Manager?  This is my short URL based on that Global ID: https://maps.srcity.org/Html5Viewer/Index.html?viewer=parcel

     

     
    0
  • Permanently deleted user

    Hi Mike, 

    Looks like there is a missing " after "securityURL 

    0
  • Permanently deleted user
    Figures!  That seems to have done the trick - it is down to about 4 seconds to open again.  Do I need to add all of my sites to this file?  Will these ever get over-written by Manager?  What will happen with future releases?
    0
  • Permanently deleted user
    Cory, still having issues.  Went to add another site.  There is no good documentation, but after trial and error, I discovered it worked when I included both between the {} brackets, and put a comma after the first one.  However, my "fast" parcel viewer is now just as slow as it was before - about the same as the 2nd site I added...

     

    {

     

      "viewerSettings": [

     

     {

     

      "id" : "Parcel",

     

      "url": "https://maps.srcity.org/Geocortex/Essentials/REST/sites/Parcel_Viewer/viewers/Parcels/virtualdirectory/Resources/Config/Default",

     

      "securityUrl": "",

     

      "id" : "CityMap",

     

      "url": "https://maps.srcity.org/Geocortex/Essentials/REST/sites/CityMap/viewers/CMVH/virtualdirectory/Resources/Config/Default",

     

      "securityUrl": ""

     

     }

     

      ],

     

      "endpoints": [

     

        {

     

          "name": "Default",

     

          "externalUrl": "/Geocortex/Essentials/REST/viewers/"

     

        }

     

      ]

     

    }
    0
  • Nelson Dobbs
    Mike,

     

    When you have more than one viewer listed in the ViewerSettings file, make sure you close off the first one with a bracket and then a comma to seperate, see below.

     

    {

     

      "viewerSettings": [

     

     {

     

      "id" : "Parcel",

     

      "url": "https://maps.srcity.org/Geocortex/Essentials/REST/sites/Parcel_Viewer/viewers/Parcels/virtualdirectory/Resources/Config/Default",

     

      "securityUrl": ""

     

    },

     

    {

     

      "id" : "CityMap",

     

      "url": "https://maps.srcity.org/Geocortex/Essentials/REST/sites/CityMap/viewers/CMVH/virtualdirectory/Resources/Config/Default",

     

      "securityUrl": ""

     

     }

     

      ],

     

      "endpoints": [

     

        {

     

          "name": "Default",

     

          "externalUrl": "/Geocortex/Essentials/REST/viewers/"

     

        }

     

      ]

     

    }

     

    Also, if you have any questions on whether your JSON is valid, you can go to (http://www.jsonlint.com) www.jsonlint.com .  It will validate and format it for you, it's a very helpful tool.
    0
  • Permanently deleted user
    Thanks Nelson, that works better.  I'm still curious about your slow site - my heaviest site still loads in about 12 seconds (20 seconds when things were slow and not working).  It has about four hundred layers in 5 dynamic services and also 16 cached services.  What is in yours?
    0
  • Permanently deleted user
    I'm having a similar issue. I spoke to a Mac user this morning who waited for about a minute for the site to load (http://maps.rdos.bc.ca/Html5Viewer/?viewer=PublicParcels) but then said the site performed well once loaded. Others have also complained about slow load times. The shortened viewer URLs are in the index.html file (I'm at GE4.5, GVH 2.6). Do I need to also add them to the viewersettings.json.js file as is described above to help speed things up?
    0
  • Permanently deleted user
    Yes, you need to add them to the viewersettings file to speed things up.  Also look at cached aerials and make sure you don't have all of your tiles listed as layers...if you do, remove them under the map services tab.

     

    Also, is your splash screen coming up?. I had to remove the shortcuts from the index file to get that to start showing again.
    0

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