-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Show the scores. Results are pretty meaningless, need to make the
requests intelligently.
- Loading branch information
1 parent
95bf7d3
commit c8f55cc
Showing
3 changed files
with
60 additions
and
21 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
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,19 @@ | ||
<script lang="ts"> | ||
import { GeoJSON, LineLayer, Popup } from "svelte-maplibre"; | ||
export let model; | ||
</script> | ||
|
||
<GeoJSON data={JSON.parse(model.makeHeatmap())}> | ||
<LineLayer | ||
id="scores" | ||
paint={{ | ||
"line-width": 5, | ||
"line-color": "red", | ||
}} | ||
> | ||
<Popup openOn="hover" let:data | ||
>{@html JSON.stringify(data.properties, null, "<br />")}</Popup | ||
> | ||
</LineLayer> | ||
</GeoJSON> |