Skip to content

Commit

Permalink
fix: migrate to SITLA vector tiles
Browse files Browse the repository at this point in the history
  • Loading branch information
steveoh committed Apr 9, 2024
1 parent 47ec86a commit 1ca8009
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions src/components/esrijs/MapView.jsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import EsriMap from '@arcgis/core/Map';
import { whenOnce } from '@arcgis/core/core/reactiveUtils';
import Polygon from '@arcgis/core/geometry/Polygon';
import FeatureLayer from '@arcgis/core/layers/FeatureLayer';
import EsriMap from '@arcgis/core/Map';
import VectorTileLayer from '@arcgis/core/layers/VectorTileLayer';
import MapView from '@arcgis/core/views/MapView';
import LayerSelector from '@ugrc/layer-selector';
import '@ugrc/layer-selector/src/LayerSelector.css';
Expand All @@ -12,8 +12,7 @@ import cityExtents from './data/cityExtents.json';
const randomExtent = cityExtents[Math.round(Math.random() * (cityExtents.length - 1))];
const urls = {
landownership:
'https://gis.trustlands.utah.gov/server/' +
'/rest/services/Ownership/UT_SITLA_Ownership_LandOwnership_WM/FeatureServer/0',
'https://gis.trustlands.utah.gov/hosting/rest/services/Hosted/Land_Ownership_WM_VectorTile/VectorTileServer',
};

const ReactMapView = ({ setView, zoomToGraphic, onClick }) => {
Expand Down Expand Up @@ -50,7 +49,7 @@ const ReactMapView = ({ setView, zoomToGraphic, onClick }) => {
overlays: [
'Address Points',
{
Factory: FeatureLayer,
Factory: VectorTileLayer,
url: urls.landownership,
id: 'Land Ownership',
opacity: 0.3,
Expand Down

0 comments on commit 1ca8009

Please sign in to comment.