Skip to content

Commit

Permalink
Merge pull request #217 from doug-stormtree/naturehood-add-mbs
Browse files Browse the repository at this point in the history
Naturehood add mbs
  • Loading branch information
doug-stormtree authored Dec 17, 2024
2 parents 9b473f8 + ea86fe8 commit 5790c4d
Show file tree
Hide file tree
Showing 5 changed files with 46 additions and 2 deletions.
11 changes: 11 additions & 0 deletions src/data/geojson/MigratoryBirdSanctuaries.geojson

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/data/layers/Naturehood_Animals.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ const AnimalImages = {
}

const layer = {
title: 'Naturehood Animal Images',
title: 'NatureHood Animal Images',
description: 'Animal ambassadors who can guide you through our NatureHood. Keep an eye out for them as you visit NatureHood Locations in the region.',
data: require('../geojson/Naturehood_Animals.geojson'),
shape: 'polygon',
Expand Down
2 changes: 1 addition & 1 deletion src/data/layers/Naturehood_Locations.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ const styleMap = new Map([
]);

const layer = {
title: 'Naturehood Locations',
title: 'NatureHood Locations',
description: 'A NatureHood is any place where you connect with Nature’s wonders – from observing a bee pollinate a flower in a planter box, to watching wild birds at a backyard feeder or local park, to witnessing the trees change with the passing of the seasons in your local forest. Look around and you will find Nature everywhere throughout the Greater Victoria NatureHood.',
data: require('../geojson/Naturehood_NaturehoodLocations.geojson'),
shape: 'point',
Expand Down
32 changes: 32 additions & 0 deletions src/data/layers/Naturehood_MBS.jsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
import { mapPopupContent } from '../LeafletStyleHelpers';

const layer = {
title: 'Migratory Bird Sanctuaries',
description: [
{type: 'p', content: 'Federal Migratory Bird Sanctuaries within the CRD. There are 92 Migratory Bird Sanctuaries throughout Canada, seven within British Columbia, covering over 11 million hectares of habitat. Migratory Bird Sanctuaries are managed by the Canadian Wildlife Service of Environment Canada.'},
{type: 'link', content: 'Migratory bird sanctuaries across Canada - Canada.ca', url: 'https://www.canada.ca/en/environment-climate-change/services/migratory-bird-sanctuaries/locations.html'},
{type: 'p', content: 'Polygons represent a rough outline and are not intended for legal or precise interpretation.'},
],
data: require('../geojson/MigratoryBirdSanctuaries.geojson'),
shape: 'polygon',
symbology: 'single',
options: {
style: {
stroke: true,
color: '#c45721',
fill: true,
fillOpacity: 0,
interactive: true,
},
onEachFeature: (f,l) => {
l.bindPopup(mapPopupContent(
f.properties['NAME'],
), {
offset: [0,-6],
closeOnClick: true,
});
}
},
}

export default layer;
1 change: 1 addition & 0 deletions src/data/questions/BeHealthy.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ const Question = {
{ key: 'Naturehood_PlaceNames', active: false, ...LegendGroups.Naturehood },
{ key: 'Naturehood_PlaceNamesEnglish', active: false, ...LegendGroups.Naturehood },
{ key: 'Naturehood_FirstNationsReserves', active: false, ...LegendGroups.Naturehood },
{ key: 'Naturehood_MBS', active: false, ...LegendGroups.Naturehood },
{ key: 'CRD_Parks', active: false, ...LegendGroups.Naturehood },
{ key: 'Naturehood_Animals', active: true, ...LegendGroups.Naturehood },
],
Expand Down

0 comments on commit 5790c4d

Please sign in to comment.