From 5f05612062576a5166d6d2d7abdbb98c0e7492a4 Mon Sep 17 00:00:00 2001 From: steveoh Date: Tue, 9 Apr 2024 13:52:08 -0700 Subject: [PATCH] fix: migrate to SITLA vector tiles refs agrc/planning-queue#259 --- lib/app/config.js | 4 ++-- lib/app/mapController.js | 8 +++----- 2 files changed, 5 insertions(+), 7 deletions(-) diff --git a/lib/app/config.js b/lib/app/config.js index 40a2613..ccdba23 100644 --- a/lib/app/config.js +++ b/lib/app/config.js @@ -82,8 +82,8 @@ define([ urls: { mapService: baseUrl + 'MapService/MapServer', gpService: baseUrl + 'GenerateReport/GPServer/Generate Report/execute', - landOwnership: 'https://gis.trustlands.utah.gov/server' + - '/rest/services/Ownership/UT_SITLA_Ownership_LandOwnership_WM/MapServer' + landOwnership: 'https://gis.trustlands.utah.gov/hosting/rest/services/Hosted/' + + 'Land_Ownership_WM_VectorTile/VectorTileServer' }, zoomLocationsIndex: 11, zoomLocationsField: 'Name', diff --git a/lib/app/mapController.js b/lib/app/mapController.js index cbc2707..89cc6be 100644 --- a/lib/app/mapController.js +++ b/lib/app/mapController.js @@ -14,9 +14,8 @@ define([ 'dojo/_base/lang', 'esri/geometry/Extent', - 'esri/geometry/Point', 'esri/graphic', - 'esri/layers/ArcGISDynamicMapServiceLayer', + 'esri/layers/VectorTileLayer', 'layer-selector/LayerSelector', @@ -37,9 +36,8 @@ define([ lang, Extent, - Point, Graphic, - ArcGISDynamicMapServiceLayer, + VectorTileLayer, LayerSelector, @@ -85,7 +83,7 @@ define([ quadWord: config.quadWord, baseLayers: ['Terrain', 'Hybrid', 'Lite', 'Topo'], overlays: ['Address Points', { - Factory: ArcGISDynamicMapServiceLayer, + Factory: VectorTileLayer, url: config.urls.landOwnership, id: 'Land Ownership', opacity: 0.5