Skip to content

Commit

Permalink
feat: add draft lite vector tile layers
Browse files Browse the repository at this point in the history
  • Loading branch information
steveoh committed Oct 2, 2024
1 parent aaa4cc8 commit a2a1912
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion src/components/MapContainer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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 = {
Expand Down Expand Up @@ -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',
{
Expand Down

0 comments on commit a2a1912

Please sign in to comment.