404 vector tile error in 4.8
Anyone having any luck getting a vector tile basemap to work with 4.8? They don't display in manager and won't load in the html5 viewers giving 404 errors looking for vector tile worker.js that it can't find.
0
-
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 -
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,
Justin0 -
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 -
Update: this will be resolved in Geocortex Viewer for HTML5 2.10. 0 -
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 -
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.
Comments
6 comments