-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #217 from doug-stormtree/naturehood-add-mbs
Naturehood add mbs
- Loading branch information
Showing
5 changed files
with
46 additions
and
2 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters