-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
encapsulate heatmap logic in useHeatmap hook
- Loading branch information
Showing
9 changed files
with
242 additions
and
244 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
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,36 +1,36 @@ | ||
export const DEFAULT_ZOOM = 1; // default zoom level | ||
export const DEFAULT_CENTER = [51.5074, 0.1278]; // default map center - London | ||
export const FETCH_INTERVAL_DEFAULT = 300; // fetch interval in ms - 5 minutes | ||
export const MARKER_COLOURS = { | ||
noneColour: "#0c74df", //grey for group | ||
noneBorder: "#0c74df70", | ||
noneText: "#FFF", | ||
noneRegionColour: "#0c74df", | ||
noneRegionColourBorder: "#0c74df70", | ||
|
||
criticalColour: "#DF2E23", // Red color for alert | ||
criticalColourBorder: "#DF2E2370", | ||
criticalColourText: "#fff", | ||
criticalRegionColour: "#DF2E23", | ||
criticalRegionColourBorder: "#DF2E2370", | ||
|
||
warningColour: "#FFD23D", // Amber color for warning | ||
warningColourBorder: "#FFD23D70", | ||
warningColourText: "#293238", | ||
warningRegionColour: "#FFD23D", | ||
warningRegionColourBorder: "#FFD23D70", | ||
|
||
safeColour: "#05865B", // Green color for safe | ||
safeColourBorder: "#05865B70", | ||
safeColourText: "#FFF", | ||
safeRegionColour: "#05865B", | ||
safeRegionColourBorder: "#05865B70", | ||
|
||
groupColour: "#757575", //grey for group | ||
groupBorder: "#75757570", //border, including transparency | ||
groupText: "#fff", | ||
export const DEFAULT_DISABLE_CLUSTER_ZOOM = "7"; // default disbale cluserting level | ||
|
||
heatMapDefault: ["#420052", "#6C0485", "#8F18AC", "#FFBE35", "#FFA022"], | ||
heatMapStepsDefault: 50, | ||
export const COLORS = { | ||
NONE: { | ||
color: "#0c74df", | ||
borderColor: "#0c74df70", | ||
textColor: "#FFF", | ||
}, | ||
CRITICAL: { | ||
color: "#DF2E23", | ||
borderColor: "#DF2E2370", | ||
textColor: "#fff", | ||
}, | ||
WARNING: { | ||
color: "#FFD23D", | ||
borderColor: "#FFD23D70", | ||
textColor: "#293238", | ||
}, | ||
OK: { | ||
color: "#05865B", | ||
borderColor: "#05865B70", | ||
textColor: "#FFF", | ||
}, | ||
CLUSTER: { | ||
color: "#757575", | ||
borderColor: "#75757570", | ||
textColor: "#fff", | ||
}, | ||
HEATMAP: { | ||
default: ["#420052", "#6C0485", "#8F18AC", "#FFBE35", "#FFA022"], | ||
steps: 50, | ||
}, | ||
}; | ||
export const DEFAULT_DISABLE_CLUSTER_ZOOM = "7"; // default disbale cluserting level |
Oops, something went wrong.
spelling... getPoligonOptions -> getPolygonOptions