Skip to content

Commit

Permalink
add manholes to map explorer closes #290
Browse files Browse the repository at this point in the history
  • Loading branch information
austinorr committed Aug 18, 2023
1 parent 5c7f5c2 commit 53764f0
Show file tree
Hide file tree
Showing 2 changed files with 39 additions and 4 deletions.
39 changes: 35 additions & 4 deletions stormpiper/stormpiper/spa/src/assets/geojson/coreLayers.js
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,7 @@ export const swInlet = {
},
};

export const swManHole = {
export const swManHoleModel = {
layer: GeoJsonLayer,
props: {
data: collatePaginatedQuery({
Expand All @@ -231,13 +231,12 @@ export const swManHole = {
},
},
},
id: "swManHole",
id: "swManHoleModel",
featurePKField: "OBJECTID",
label: "Regional Facility Model: Manholes",
featureType: "points",
minZoom: 14,
zorder: 10,

pointType: "circle",
pointRadiusUnits: "pixels",
defaultFillColor: colorToList("grey"),
Expand All @@ -253,6 +252,38 @@ export const swManHole = {
},
};

export const swManHole = {
layer: GeoJsonLayer,
props: {
data: collatePaginatedQuery({
url: "https://gis.cityoftacoma.org/arcgis/rest/services/ES/SurfacewaterNetwork/MapServer/23",
fields: ["FACILITYID", "ALTID"],
}),
loadOptions: {
fetch: {
headers: {
Authorization: Authorization,
},
},
},
id: "swManHole",
featurePKField: "OBJECTID",
label: "Manholes",
featureType: "points",
minZoom: 14,
zorder: 10,
pointType: "circle",
pointRadiusUnits: "pixels",
defaultFillColor: colorToList("grey"),
getFillColor: colorToList("grey"),
getPointRadius: 3,
getLineWidth: 1,
lineWidthUnits: "pixels",
pickable: true,
onByDefault: false,
},
};

export const delineations = {
layer: GeoJsonLayer,
props: {
Expand Down Expand Up @@ -659,7 +690,7 @@ export const layerDict = {
Delineations: [delineations, subbasins],
},
"Base Layers": {
Conveyance: [swTrunk, swMain, swCBLead, swInlet, swManHole],
Conveyance: [swTrunk, swMain, swCBLead, swInlet, swManHole, swManHoleModel],
Landuse: [
landCoverRaster,
imperviousnessRaster,
Expand Down
4 changes: 4 additions & 0 deletions stormpiper/stormpiper/spa/src/components/map.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,10 @@ const tooltipFieldDict = {
swCBLead: [{ id: "ALTID", label: "Lead ID" }],
swInlet: [{ id: "ALTID", label: "Inlet ID" }],
swManHole: [
{ id: "FACILITYID", label: "Facility ID" },
{ id: "ALTID", label: "ALTID" },
],
swManHoleModel: [
{ id: "MH_DrainageArea_ALTID", label: "Manhole ID" },
{ id: "MH_DrainageArea_UPST_IMPVS", label: "Upstream Impervious Acres" },
],
Expand Down

0 comments on commit 53764f0

Please sign in to comment.