Add parcel data to overview heatmap
This commit is contained in:
parent
f1e4aca9b8
commit
77283b3654
2 changed files with 10 additions and 4 deletions
|
|
@ -10,6 +10,7 @@ type LayerType = maplibregl.LayerSpecification["type"];
|
|||
export interface Props {
|
||||
filter?: maplibregl.FilterSpecification;
|
||||
id: string;
|
||||
minzoom?: number;
|
||||
paint: Object;
|
||||
source: string;
|
||||
sourceLayer: string;
|
||||
|
|
@ -31,6 +32,7 @@ const getLayerConfig = (): maplibregl.LayerSpecification => {
|
|||
"source-layer": props.sourceLayer,
|
||||
type: props.type,
|
||||
...(props.filter && { filter: props.filter }),
|
||||
...(props.minzoom && { minzoom: props.minzoom }),
|
||||
...(props.paint && { paint: props.paint }),
|
||||
} as maplibregl.LayerSpecification;
|
||||
return result;
|
||||
|
|
|
|||
|
|
@ -150,9 +150,16 @@
|
|||
:paint="{ 'fill-opacity': 0.4, 'fill-color': '#dc3545' }"
|
||||
source="tegola"
|
||||
sourceLayer="mosquito_source"
|
||||
,
|
||||
type="fill"
|
||||
/>
|
||||
<Layer
|
||||
id="parcel"
|
||||
:minzoom="14"
|
||||
:paint="{ 'line-color': '#0f0' }"
|
||||
source="tegola"
|
||||
sourceLayer="parcel"
|
||||
type="line"
|
||||
/>
|
||||
<Layer
|
||||
id="service_request"
|
||||
:filter="[
|
||||
|
|
@ -163,7 +170,6 @@
|
|||
:paint="{ 'fill-opacity': 0.4, 'fill-color': '#ffc107' }"
|
||||
source="tegola"
|
||||
sourceLayer="service_request"
|
||||
,
|
||||
type="fill"
|
||||
/>
|
||||
<Layer
|
||||
|
|
@ -176,7 +182,6 @@
|
|||
:paint="{ 'fill-opacity': 0.4, 'fill-color': '#ffc107' }"
|
||||
source="tegola"
|
||||
sourceLayer="trap"
|
||||
,
|
||||
type="fill"
|
||||
/>
|
||||
<Layer
|
||||
|
|
@ -184,7 +189,6 @@
|
|||
:paint="{ 'line-color': '#f00' }"
|
||||
source="tegola"
|
||||
sourceLayer="service-area-bounds"
|
||||
,
|
||||
type="line"
|
||||
/>
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue