mirror of
https://github.com/DOI-DO/j40-cejst-2.git
synced 2025-08-02 23:14:18 -07:00
Various map styling fixes (#278)
Addresses #182, #291, #273 and #191 In particular: * Removes zoom fading for now * adds legend * Styles mapbox popup correctly * Styles zoom control * Adds feature borders at higher zoom levels
This commit is contained in:
parent
f4f7c35ca8
commit
beac44ef20
20 changed files with 236 additions and 187 deletions
|
@ -1,11 +1,26 @@
|
|||
// Properties
|
||||
export const SCORE_PROPERTY = 'Score D (percentile)';
|
||||
export const GEOID_PROPERTY = 'GEOID10';
|
||||
export type J40Properties = { [key: string]: any };
|
||||
|
||||
|
||||
// Zoom
|
||||
export const GLOBAL_MIN_ZOOM = 3;
|
||||
export const GLOBAL_MAX_ZOOM = 11;
|
||||
export const GLOBAL_MAX_ZOOM = 22;
|
||||
export const GLOBAL_MIN_ZOOM_LOW = 3;
|
||||
export const GLOBAL_MAX_ZOOM_LOW = 11;
|
||||
export const GLOBAL_MAX_ZOOM_LOW = 9;
|
||||
export const GLOBAL_MIN_ZOOM_HIGH = 9;
|
||||
export const GLOBAL_MAX_ZOOM_HIGH = 11;
|
||||
export const GLOBAL_MAX_ZOOM_HIGH = 12;
|
||||
|
||||
// Bounds
|
||||
export const GLOBAL_MAX_BOUNDS = [[-167.276413, 5.499550], [-52.233040, 83.162102]];
|
||||
export const DEFAULT_CENTER = [32.4687126, -86.502136];
|
||||
export type J40Properties = { [key: string]: any };
|
||||
|
||||
// Opacity
|
||||
export const DEFAULT_LAYER_OPACITY = 0.6;
|
||||
|
||||
// Colors
|
||||
export const DEFAULT_OUTLINE_COLOR = '#4EA5CF';
|
||||
export const MIN_COLOR = '#FFFFFF';
|
||||
export const MED_COLOR = '#D1DAE6';
|
||||
export const MAX_COLOR = '#768FB3';
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue