Skip to content

Commit

Permalink
fix(*): fix examples for github
Browse files Browse the repository at this point in the history
  • Loading branch information
mbarbeau committed Oct 8, 2019
1 parent 54e74aa commit ac9bc64
Show file tree
Hide file tree
Showing 6 changed files with 51 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@
<igo-search-results
*ngIf="!resultSelected$.value"
[store]="store"
[showIcons]="true"
(resultFocus)="focusResult($event)"
(resultSelect)="selectResult($event)">
</igo-search-results>
Expand Down
38 changes: 37 additions & 1 deletion src/config/config.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,41 @@
}
},
"theme": "blue-theme",
"hasExpansionPanel": false
"hasExpansionPanel": false,
"catalog": {
"sources": [
{
"id": "Gououvert",
"title": "Gouvouvert",
"url": "https://geoegl.msp.gouv.qc.ca/apis/ws/igo_gouvouvert.fcgi"
}
]
},
"importExport": {
"url": "https://geoegl.msp.gouv.qc.ca/apis/ogre"
},
"searchSources": {
"nominatim": {
"available": false
},
"icherche": {
"searchUrl": "https://geoegl.msp.gouv.qc.ca/apis/icherche",
"order": 2,
"params": {
"limit": "8"
}
},
"icherchereverse": {
"searchUrl": "https://geoegl.msp.gouv.qc.ca/apis/territoires",
"order": 3,
"enabled": true
},
"ilayer": {
"searchUrl": "https://geoegl.msp.gouv.qc.ca/apis/icherche/layers",
"order": 4,
"params": {
"limit": "5"
}
}
}
}
2 changes: 1 addition & 1 deletion src/contexts/_default.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
"baseLayer": true,
"sourceOptions": {
"type": "xyz",
"url": "https://geoegl.msp.gouv.qc.ca/carto/tms/1.0.0/carte_gouv_qc_public@EPSG_3857/{z}/{x}/{-y}.png",
"url": "https://geoegl.msp.gouv.qc.ca/apis/carto/tms/1.0.0/carte_gouv_qc_public@EPSG_3857/{z}/{x}/{-y}.png",
"attributions": "© <a href='http://www.droitauteur.gouv.qc.ca/copyright.php' target='_blank'><img src='https://geoegl.msp.gouv.qc.ca/gouvouvert/public/images/quebec/gouv_qc_logo.png' width='64' height='14'>Gouvernement du Québec</a> / <a href='http://www.igouverte.org/' target='_blank'>IGO2</a>"
}
}
Expand Down
7 changes: 3 additions & 4 deletions src/contexts/embacle.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
"baseLayer": true,
"sourceOptions": {
"type": "xyz",
"url": "https://geoegl.msp.gouv.qc.ca/carto/tms/1.0.0/carte_gouv_qc_public@EPSG_3857/{z}/{x}/{-y}.png"
"url": "https://geoegl.msp.gouv.qc.ca/apis/carto/tms/1.0.0/carte_gouv_qc_public@EPSG_3857/{z}/{x}/{-y}.png"
}
},
{
Expand All @@ -43,7 +43,7 @@
"title": "WFS",
"sourceOptions": {
"type": "wfs",
"url": "/apis/ws/igo_gouvouvert.fcgi",
"url": "https://geoegl.msp.gouv.qc.ca/apis/ws/igo_gouvouvert.fcgi",
"params": {
"featureTypes": "vg_observation_v_autre_wmst",
"fieldNameGeometry": "geometry",
Expand Down Expand Up @@ -104,7 +104,7 @@
"title": "Embâcle",
"sourceOptions": {
"type": "wms",
"url": "/apis/ws/igo_gouvouvert.fcgi",
"url": "https://geoegl.msp.gouv.qc.ca/apis/ws/igo_gouvouvert.fcgi",
"queryable": true,
"params": {
"layers": "vg_observation_v_inondation_embacle_wmst",
Expand All @@ -117,7 +117,6 @@
"range": true,
"type": "datetime"
}

},
"metadata": {
"url": "https://www.donneesquebec.ca/recherche/fr/dataset/historique-publique-d-embacles-repertories-au-msp",
Expand Down
6 changes: 3 additions & 3 deletions src/contexts/qc911.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,14 @@
"visible": true,
"sourceOptions": {
"type": "xyz",
"url": "https://geoegl.msp.gouv.qc.ca/carto/tms/1.0.0/carte_gouv_qc_ro@EPSG_3857/{z}/{x}/{-y}.png"
"url": "https://geoegl.msp.gouv.qc.ca/apis/carto/tms/1.0.0/carte_gouv_qc_ro@EPSG_3857/{z}/{x}/{-y}.png"
}
},
{
"title": "MSP DESSERTE MUN 911",
"sourceOptions": {
"type": "wms",
"url": "/apis/ws/igo_gouvouvert.fcgi",
"url": "https://geoegl.msp.gouv.qc.ca/apis/ws/igo_gouvouvert.fcgi",
"params": {
"layers": "MSP_DESSERTE_MUN_911",
"version": "1.3.0"
Expand All @@ -37,7 +37,7 @@
"title": "MSP Tel. Urgence",
"sourceOptions": {
"type": "wms",
"url": "/apis/ws/igo_gouvouvert.fcgi",
"url": "https://geoegl.msp.gouv.qc.ca/apis/ws/igo_gouvouvert.fcgi",
"params": {
"layers": "telephone_urg",
"version": "1.3.0"
Expand Down
8 changes: 6 additions & 2 deletions src/environments/environment.prod.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
import { LanguageOptions } from '@igo2/core';
import { SearchSourceOptions } from '@igo2/geo';
import { SearchSourceOptions, ImportExportServiceOptions } from '@igo2/geo';

interface Environment {
production: boolean;
igo: {
importExport?: ImportExportServiceOptions;
searchSources?: { [key: string]: SearchSourceOptions };
language?: LanguageOptions;
};
Expand All @@ -12,6 +13,9 @@ interface Environment {
export const environment: Environment = {
production: true,
igo: {
importExport: {
url: '/apis/ogre'
},
searchSources: {
nominatim: {
available: false
Expand All @@ -29,7 +33,7 @@ export const environment: Environment = {
enabled: true
},
ilayer: {
searchUrl: '/apis/layers/search',
searchUrl: '/apis/icherche/layers',
order: 4,
params: {
limit: '5'
Expand Down

0 comments on commit ac9bc64

Please sign in to comment.