Skip to content

Commit

Permalink
feat(config): add projections
Browse files Browse the repository at this point in the history
  • Loading branch information
mbarbeau committed Oct 31, 2019
1 parent fbfe31f commit d190be1
Show file tree
Hide file tree
Showing 7 changed files with 74 additions and 24 deletions.
2 changes: 0 additions & 2 deletions src/contexts/_base.json
Original file line number Diff line number Diff line change
Expand Up @@ -78,8 +78,6 @@
"searchResults",
"contextManager",
"mapDetails",
"timeFilter",
"ogcFilter",
"measurer",
"directions",
"catalog",
Expand Down
14 changes: 0 additions & 14 deletions src/contexts/mapOverlay.json
Original file line number Diff line number Diff line change
Expand Up @@ -105,20 +105,6 @@
"fixed": true
}
],
"toolbar": [
"searchResults",
"contextManager",
"mapDetails",
"timeAnalysis",
"ogcFilter",
"measurer",
"directions",
"catalog",
"importExport",
"print",
"shareMap",
"about"
],
"tools": [
{
"name": "about",
Expand Down
13 changes: 13 additions & 0 deletions src/contexts/ogcFilters.json
Original file line number Diff line number Diff line change
Expand Up @@ -182,5 +182,18 @@
}
}
}
],
"toolbar": [
"searchResults",
"contextManager",
"mapDetails",
"ogcFilter",
"measurer",
"directions",
"catalog",
"importExport",
"print",
"shareMap",
"about"
]
}
3 changes: 1 addition & 2 deletions src/contexts/timeFilter.json
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,7 @@
"searchResults",
"contextManager",
"mapDetails",
"timeAnalysis",
"ogcFilter",
"timeFilter",
"measurer",
"directions",
"catalog",
Expand Down
20 changes: 18 additions & 2 deletions src/environments/environment.github.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@ import { LanguageOptions } from '@igo2/core';
import {
SearchSourceOptions,
ImportExportServiceOptions,
CatalogServiceOptions
CatalogServiceOptions,
Projection
} from '@igo2/geo';

interface Environment {
Expand All @@ -12,6 +13,7 @@ interface Environment {
importExport?: ImportExportServiceOptions;
language?: LanguageOptions;
searchSources?: { [key: string]: SearchSourceOptions };
projections?: Projection[];
};
}

Expand Down Expand Up @@ -61,6 +63,20 @@ export const environment: Environment = {
limit: '5'
}
}
}
},
projections: [
{
code: 'EPSG:32198',
def:
'+proj=lcc +lat_1=60 +lat_2=46 +lat_0=44 +lon_0=-68.5 +x_0=0 +y_0=0 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs',
extent: [-799574, 45802, 891595.4, 1849567.5]
},
{
code: 'EPSG:3798',
def:
'+proj=lcc +lat_1=50 +lat_2=46 +lat_0=44 +lon_0=-70 +x_0=800000 +y_0=0 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs',
extent: [31796.5834, 158846.2231, 1813323.4284, 2141241.0978]
}
]
}
};
23 changes: 21 additions & 2 deletions src/environments/environment.prod.ts
Original file line number Diff line number Diff line change
@@ -1,12 +1,17 @@
import { LanguageOptions } from '@igo2/core';
import { SearchSourceOptions, ImportExportServiceOptions } from '@igo2/geo';
import {
SearchSourceOptions,
ImportExportServiceOptions,
Projection
} from '@igo2/geo';

interface Environment {
production: boolean;
igo: {
importExport?: ImportExportServiceOptions;
language?: LanguageOptions;
searchSources?: { [key: string]: SearchSourceOptions };
projections?: Projection[];
};
}

Expand Down Expand Up @@ -42,6 +47,20 @@ export const environment: Environment = {
limit: '5'
}
}
}
},
projections: [
{
code: 'EPSG:32198',
def:
'+proj=lcc +lat_1=60 +lat_2=46 +lat_0=44 +lon_0=-68.5 +x_0=0 +y_0=0 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs',
extent: [-799574, 45802, 891595.4, 1849567.5]
},
{
code: 'EPSG:3798',
def:
'+proj=lcc +lat_1=50 +lat_2=46 +lat_0=44 +lon_0=-70 +x_0=800000 +y_0=0 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs',
extent: [31796.5834, 158846.2231, 1813323.4284, 2141241.0978]
}
]
}
};
23 changes: 21 additions & 2 deletions src/environments/environment.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,11 @@
import { AuthOptions } from '@igo2/auth';
import { ContextServiceOptions } from '@igo2/context';
import { LanguageOptions } from '@igo2/core';
import { SearchSourceOptions, CatalogServiceOptions } from '@igo2/geo';
import {
SearchSourceOptions,
CatalogServiceOptions,
Projection
} from '@igo2/geo';

interface Environment {
production: boolean;
Expand All @@ -16,6 +20,7 @@ interface Environment {
context?: ContextServiceOptions;
language?: LanguageOptions;
searchSources?: { [key: string]: SearchSourceOptions };
projections?: Projection[];
};
}

Expand Down Expand Up @@ -71,6 +76,20 @@ export const environment: Environment = {
limit: '5'
}
}
}
},
projections: [
{
code: 'EPSG:32198',
def:
'+proj=lcc +lat_1=60 +lat_2=46 +lat_0=44 +lon_0=-68.5 +x_0=0 +y_0=0 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs',
extent: [-799574, 45802, 891595.4, 1849567.5]
},
{
code: 'EPSG:3798',
def:
'+proj=lcc +lat_1=50 +lat_2=46 +lat_0=44 +lon_0=-70 +x_0=800000 +y_0=0 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs',
extent: [31796.5834, 158846.2231, 1813323.4284, 2141241.0978]
}
]
}
};

0 comments on commit d190be1

Please sign in to comment.