From a2a1912d06bef750b89343a04ae19810db616a44 Mon Sep 17 00:00:00 2001 From: steveoh Date: Wed, 2 Oct 2024 14:35:55 -0600 Subject: [PATCH] feat: add draft lite vector tile layers --- src/components/MapContainer.tsx | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/src/components/MapContainer.tsx b/src/components/MapContainer.tsx index 8e7e9d0e..0f1e3938 100644 --- a/src/components/MapContainer.tsx +++ b/src/components/MapContainer.tsx @@ -14,6 +14,8 @@ const { item: randomExtent } = randomize<__esri.GraphicProperties>(cityExtents); const urls = { landownership: 'https://gis.trustlands.utah.gov/hosting/rest/services/Hosted/Land_Ownership_WM_VectorTile/VectorTileServer', + liteVector: + 'https://www.arcgis.com/sharing/rest/content/items/77202507796a4d5796b7d8e6871e352e/resources/styles/root.json', }; type LayerFactory = { @@ -60,7 +62,18 @@ export const MapContainer = ({ onClick }: { onClick?: __esri.ViewImmediateClickE const selectorOptions: SelectorOptions = { view: mapView.current, quadWord: import.meta.env.VITE_DISCOVER, - baseLayers: ['Hybrid', 'Lite', 'Terrain', 'Topo', 'Color IR'], + baseLayers: [ + 'Hybrid', + { + Factory: VectorTileLayer, + url: urls.liteVector, + id: 'Lite', + opacity: 1, + }, + 'Terrain', + 'Topo', + 'Color IR', + ], overlays: [ 'Address Points', {