Skip to content

Commit 1ca8009

Browse files
committed
fix: migrate to SITLA vector tiles
refs agrc/planning-queue#259
1 parent 47ec86a commit 1ca8009

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

src/components/esrijs/MapView.jsx

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1+
import EsriMap from '@arcgis/core/Map';
12
import { whenOnce } from '@arcgis/core/core/reactiveUtils';
23
import Polygon from '@arcgis/core/geometry/Polygon';
3-
import FeatureLayer from '@arcgis/core/layers/FeatureLayer';
4-
import EsriMap from '@arcgis/core/Map';
4+
import VectorTileLayer from '@arcgis/core/layers/VectorTileLayer';
55
import MapView from '@arcgis/core/views/MapView';
66
import LayerSelector from '@ugrc/layer-selector';
77
import '@ugrc/layer-selector/src/LayerSelector.css';
@@ -12,8 +12,7 @@ import cityExtents from './data/cityExtents.json';
1212
const randomExtent = cityExtents[Math.round(Math.random() * (cityExtents.length - 1))];
1313
const urls = {
1414
landownership:
15-
'https://gis.trustlands.utah.gov/server/' +
16-
'/rest/services/Ownership/UT_SITLA_Ownership_LandOwnership_WM/FeatureServer/0',
15+
'https://gis.trustlands.utah.gov/hosting/rest/services/Hosted/Land_Ownership_WM_VectorTile/VectorTileServer',
1716
};
1817

1918
const ReactMapView = ({ setView, zoomToGraphic, onClick }) => {
@@ -50,7 +49,7 @@ const ReactMapView = ({ setView, zoomToGraphic, onClick }) => {
5049
overlays: [
5150
'Address Points',
5251
{
53-
Factory: FeatureLayer,
52+
Factory: VectorTileLayer,
5453
url: urls.landownership,
5554
id: 'Land Ownership',
5655
opacity: 0.3,

0 commit comments

Comments
 (0)