Skip to content

Commit

Permalink
Merge pull request #413 from onaio/307-update-map-on-drilldown-intera…
Browse files Browse the repository at this point in the history
…ction

307 Update Map on DrillDown Table Interaction
  • Loading branch information
Conor Kelly authored Aug 28, 2019
2 parents c3f8327 + 6b8c5d3 commit 8f4eab1
Show file tree
Hide file tree
Showing 3 changed files with 269 additions and 75 deletions.
10 changes: 8 additions & 2 deletions src/configs/settings.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/** This is the main configuration module */
import { Providers } from '@onaio/gatekeeper';
import { Expression } from 'mapbox-gl';
import { Expression, LngLatBoundsLike } from 'mapbox-gl';
import {
DOMAIN_NAME,
ENABLE_ONADATA_OAUTH,
Expand Down Expand Up @@ -621,6 +621,11 @@ export const structureFillOpacity: Expression = [
0.75,
];

/** Jurisdiction Selection Map Layer Style Settings */
export const fullySelectedJurisdictionOpacity: number = 0.9;
export const partiallySelectedJurisdictionOpacity: number = 0.6;
export const deselectedJurisdictionOpacity: number = 0.3;

/** Fill layer configuration */
export const fillLayerConfig = {
id: 'single-jurisdiction',
Expand Down Expand Up @@ -718,12 +723,13 @@ export interface ADMN3 extends ADMN2 {
ADMN3_EN: string;
}

export const baseTilesetGeographicLevel: number = 1; // this tells the Jurisdiction Selection map at which geographic level to start rendering administrative fill layers
export const JurisdictionLevels = ['administrative', 'operational'] as const;
export type JurisdictionTypes = typeof JurisdictionLevels[number];
/** interface descbribing basic country level information */
export interface JurisdictionsByCountry extends ADMN0 {
// the GPS extents of given geometry(s)
bounds?: any[];
bounds?: LngLatBoundsLike;

// the top level jurisdiction_Ids from OpenSRP
// this is most useful for instances where tilesets DO NOT match the OpenSRP hierarchy
Expand Down
Loading

0 comments on commit 8f4eab1

Please sign in to comment.