Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions src/components/Legend.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -379,6 +379,7 @@ const SinglePatchPoint = ({ style }) => {
fill={style.fill}
stroke={style.stroke}
src={style.src}
border={style.border}
marginInline='-4px'
/>
);
Expand Down
1 change: 1 addition & 0 deletions src/data/LeafletStyleHelpers.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ export const MapMarker = (props) => {
width: (props.size) + 'px',
height: (props.size) + 'px',
fontSize: (props.size - props.padding - props.padding) + 'px',
border: props.border,
}}>{props.icon}</div>
)
}
Expand Down
15 changes: 15 additions & 0 deletions src/data/geojson/PumpoutStationsCRD.geojson
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"type": "FeatureCollection",
"name": "PumpoutStationsCRD",
"crs": { "type": "name", "properties": { "name": "urn:ogc:def:crs:OGC:1.3:CRS84" } },
"features": [
{ "type": "Feature", "properties": { "id": 1, "Name": "Victoria International Marina", "Details": "For marina customers only, sometimes make arrangements with commercial vessels.", "Cost": "$30" }, "geometry": { "type": "Point", "coordinates": [ -123.38312, 48.42742 ] } },
{ "type": "Feature", "properties": { "id": 2, "Name": "Greater Victoria Harbour Authority", "Details": "Located on Finger B at Fisherman's Wharf, payment is only through visa and must be tap. GVHA also offers mobile pump out service for long term moorage customers at the marinas. The pumpout is self operated.", "Cost": "$10" }, "geometry": { "type": "Point", "coordinates": [ -123.38183, 48.42331 ] } },
{ "type": "Feature", "properties": { "id": 3, "Name": "Angler's Anchorage Marina", "Details": "For long term customers only.", "Cost": "Free" }, "geometry": { "type": "Point", "coordinates": [ -123.46252, 48.57155 ] } },
{ "type": "Feature", "properties": { "id": 4, "Name": "Port Sidney Marina", "Details": "Should be up and running very soon, some minor repairs have to be done first, only for vessels 40 ft and under.", "Cost": "$10 for stationary, $25 for mobile" }, "geometry": { "type": "Point", "coordinates": [ -123.39502, 48.65094 ] } },
{ "type": "Feature", "properties": { "id": 5, "Name": "Van Isle Marina", "Details": "Available during business hours.", "Cost": "Under 29 ft: $19.05, 30 - 49 ft: $23.82, 50 ft and above: $28.57" }, "geometry": { "type": "Point", "coordinates": [ -123.40444, 48.66744 ] } },
{ "type": "Feature", "properties": { "id": 6, "Name": "Mill Bay Marina", "Details": "Available during business hours.", "Cost": "$20" }, "geometry": { "type": "Point", "coordinates": [ -123.55245, 48.64981 ] } },
{ "type": "Feature", "properties": { "id": 7, "Name": "Ganges Coast Guard Dock", "Details": "Self serve, $10 gets you 7 minutes of pumping.", "Cost": "$10" }, "geometry": { "type": "Point", "coordinates": [ -123.49753, 48.85389 ] } },
{ "type": "Feature", "properties": { "id": 8, "Name": "Greater Victoria Habour Authority", "Details": "On Wednesdays they have a mobile service.", "Cost": "$80" }, "geometry": { "type": "Point", "coordinates": [ -123.36963, 48.4249 ] } }
]
}
34 changes: 34 additions & 0 deletions src/data/layers/PumpoutStations.jsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
import { mapPopupContent, pointToIcon } from '../LeafletStyleHelpers';
import { ReactComponent as PumpoutIcon } from '../svg/pumpout.svg';

const iconStyle = {
icon: (<PumpoutIcon />),
border: '3px solid orange',
legendText: "Sewage Pumpout Station"
}

const layer = {
title: 'Sewage Pumpout Stations',
description: [
{type:'p', content:'Location and information on the sewage pumpout stations within the CRD.'},
],
data: require('../geojson/PumpoutStationsCRD.geojson'),
shape: 'point',
symbology: 'single',
icon: iconStyle,
options: {
pointToLayer: (f,l) => pointToIcon(l, iconStyle),
onEachFeature: (f,l) => {
l.bindPopup(mapPopupContent(
f.properties.Name,
[
'Sewage Pumpout Station',
f.properties.Details,
'Cost: ' + f.properties.Cost,
],
), {offset: [0,-6]});
}
},
}

export default layer;
1 change: 1 addition & 0 deletions src/data/questions/CreateCommunity.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,7 @@ const Question = {
{ key: 'WatershedRunoffAbsorption', active: false, group: 'Water' },
{ key: 'Watersheds', active: false, group: 'Water' },
{ key: 'Eelgrass', active: false, group: 'Water' },
{ key: 'PumpoutStations', active: false, group: 'Water' },
],
sections: {
one: [
Expand Down
1 change: 1 addition & 0 deletions src/data/questions/ProtectTheCoast.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ const Question = {
{ key: 'ShellfishPO', active: false, ...LegendGroups.StartOn },
{ key: 'ShorelineSensitivity', active: true, ...LegendGroups.StartOn },
{ key: 'ForageFish', active: false, ...LegendGroups.StartOff },
{ key: 'PumpoutStations', active: false, ...LegendGroups.StartOff },
],
sections: {
one: [
Expand Down
1 change: 1 addition & 0 deletions src/data/svg/pumpout.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.