-
-
Notifications
You must be signed in to change notification settings - Fork 58
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
fd686ec
commit ece14e3
Showing
53 changed files
with
425 additions
and
548 deletions.
There are no files selected for viewing
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,16 @@ | ||
import { type ReactNode } from "react"; | ||
import { SafeAreaView } from "react-native-safe-area-context"; | ||
|
||
import { sheet } from "../styles/sheet"; | ||
|
||
interface PageProps { | ||
children: ReactNode; | ||
} | ||
|
||
export default function MapSafeAreaView({ children }: PageProps) { | ||
return ( | ||
<SafeAreaView edges={["bottom"]} style={sheet.matchParent}> | ||
{children} | ||
</SafeAreaView> | ||
); | ||
} |
This file was deleted.
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
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 |
---|---|---|
@@ -1,41 +1,38 @@ | ||
import MapLibreGL from "@maplibre/maplibre-react-native"; | ||
|
||
import Page from "../../components/Page"; | ||
import { sheet } from "../../styles/sheet"; | ||
|
||
export default function Heatmap() { | ||
return ( | ||
<Page> | ||
<MapLibreGL.MapView style={sheet.matchParent}> | ||
<MapLibreGL.ShapeSource | ||
<MapLibreGL.MapView style={sheet.matchParent}> | ||
<MapLibreGL.ShapeSource | ||
id="earthquakes" | ||
url="https://www.mapbox.com/mapbox-gl-js/assets/earthquakes.geojson" | ||
> | ||
<MapLibreGL.HeatmapLayer | ||
id="earthquakes" | ||
url="https://www.mapbox.com/mapbox-gl-js/assets/earthquakes.geojson" | ||
> | ||
<MapLibreGL.HeatmapLayer | ||
id="earthquakes" | ||
sourceID="earthquakes" | ||
style={{ | ||
heatmapColor: [ | ||
"interpolate", | ||
["linear"], | ||
["heatmap-density"], | ||
0, | ||
"rgba(33,102,172,0)", | ||
0.2, | ||
"rgb(103,169,207)", | ||
0.4, | ||
"rgb(209,229,240)", | ||
0.6, | ||
"rgb(253,219,199)", | ||
0.8, | ||
"rgb(239,138,98)", | ||
1, | ||
"rgb(178,24,43)", | ||
], | ||
}} | ||
/> | ||
</MapLibreGL.ShapeSource> | ||
</MapLibreGL.MapView> | ||
</Page> | ||
sourceID="earthquakes" | ||
style={{ | ||
heatmapColor: [ | ||
"interpolate", | ||
["linear"], | ||
["heatmap-density"], | ||
0, | ||
"rgba(33,102,172,0)", | ||
0.2, | ||
"rgb(103,169,207)", | ||
0.4, | ||
"rgb(209,229,240)", | ||
0.6, | ||
"rgb(253,219,199)", | ||
0.8, | ||
"rgb(239,138,98)", | ||
1, | ||
"rgb(178,24,43)", | ||
], | ||
}} | ||
/> | ||
</MapLibreGL.ShapeSource> | ||
</MapLibreGL.MapView> | ||
); | ||
} |
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
Oops, something went wrong.