Skip to content

Commit

Permalink
Text updates
Browse files Browse the repository at this point in the history
  • Loading branch information
eyeseast committed Jan 5, 2024
1 parent 97cec45 commit 4c440c6
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 3 deletions.
14 changes: 14 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,20 @@ Let's build a self-hosted version of [this wildfire map](https://felt.com/map/Wi

Svelte is really just here for UI elements like a legend. This could pretty easily be vanilla javascript.

## Embed

Copy the following snippet into the CMS of your choice:

```html
<iframe
src="https://muckrock.github.io/wildfires-protomaps/#4/39.82/-98.84"
width="100%"
height="450px"
frameborder="0"
title="Wildfires: 1980 - 2021"
></iframe>
```

## Fire data

The wilfire data is generated from our [gao-wildfire-exceptions](https://github.com/MuckRock/gao-wildfire-exceptions) repository.
6 changes: 5 additions & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,12 @@
<html lang="en">
<head>
<meta charset="UTF-8" />
<link rel="icon" type="image/svg+xml" href="/vite.svg" />
<link
rel="shortcut icon"
href="https://cdn.muckrock.com/icons/favicon.ico"
/>
<meta name="viewport" content="width=device-width, initial-scale=1.0" />

<title>Wildfires: 1980 - 2021</title>

<link
Expand Down
4 changes: 2 additions & 2 deletions src/text.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,12 @@
"source": "National Interagency Fire Center",
"legend": {
"title": "Burned areas",
"description": "This map shows the perimeters of all wildfires in the United States between 1980 and 2021. Zoom in and click any individual fire for details. Click a decade in the legend to filter by decade.",
"description": "This map shows the perimeters of all wildfires in the United States between 1980 and 2021. Click a decade in the legend to filter by decade.",
"items": [
{ "color": "#ffffb2", "label": "1980 to 1990", "value": 1980 },
{ "color": "#fecc5c", "label": "1990 to 2000", "value": 1990 },
{ "color": "#fd8d3c", "label": "2000 to 2010", "value": 2000 },
{ "color": "#e31a1c", "label": "2010 to 2020", "value": 2010 }
{ "color": "#e31a1c", "label": "2010 to 2021", "value": 2010 }
]
}
}

0 comments on commit 4c440c6

Please sign in to comment.