Skip to main content

404 vector tile error in 4.8

Comments

6 comments

  • Permanently deleted user
    Hi Justin,

     

    We're aware of an issue with vector tile layers not displaying (GE-8899) but they should display in the HTML5 viewer. Is either the viewer or the vector tile service you're using publicly accessible?
    0
  • Justin Burdette
    I've added thie v1 vector tile service: https://basemaps.arcgis.com/v1/arcgis/rest/services/World_Basemap/VectorTileServer

     

    and this error happens when the HTML5 viewer is loading and the vector tile base map never displays:

     

    /Html5Viewer/Resources/Scripts/esri/layers/vectorTiles/core/workers/worker.js

     

    Failed to load resource: the server responded with a status of 404 (Not Found)

     

    Thanks,

     

    Justin
    0
  • Permanently deleted user
    Ah. I think I see the problem. Is your viewer configured to use a local copy of Esri's JavaScript API? It appears that we have not included all of the required scripts for vector tiles to work.

     

    I'll file a bug, but in the meantime, you have a couple of options: Option 1: Configure your viewer to use the Esri-hosted JavaScript API by commenting out the line in Index.html, identified in (https://support.geocortex.com/essentialsGSCkba?sub-nav=kba&main-nav=essentials&id=kA3600000008QTt) this article :  // Uncomment the below line to only use local copies of Esri API files. This is done automatically in the Geocortex Mobile App Framework. //var geocortexUseLocalEsriApi = true; // <- comment this line out

     

    Option 2: Download the appropriate version of the (https://developers.arcgis.com/downloads/apis-and-sdks?product=javascript) Esri JavaScript API  (bring up the viewer's log to see which version it's running -- GVH 2.9 uses 3.20). In your viewer folder, open up the local copy of the JavaScript API and copy the files that are missing from your downloaded copy to your viewer's directory in IIS (by default, C:\inetpub\wwwroot\Html5Viewer\..). The two I needed to get my viewer displaying vector tiles were:

     

    ..\Html5Viewer\Resources\Scripts\esri\layers\vectorTiles\core\workers\worker.js

     

    ..\Html5Viewer\Resources\Scripts\esri\layers\vectorTiles\core\workers\worker-init.js

     

    You may want to test your application to see if there are other necessary files that are missing and copy them in accordingly.

     

    Edit: issue is filed as GVH-16235.
    0
  • Permanently deleted user
    Update: this will be resolved in Geocortex Viewer for HTML5 2.10.
    0
  • Justin Burdette
    I downloaded and copied those 2 files and its working good now. They had to be copied into the inetpub directories which I didn't do at first.

     

    Thanks for your help Jordan.

     

     
    0
  • Permanently deleted user
    Ah, whoops. I should have been clearer. I've edited my post to specify the viewer directory in IIS. Glad you're up and running again!
    0

Please sign in to leave a comment.