Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Next #39

Merged
merged 54 commits into from
May 11, 2020
Merged

Next #39

Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
54 commits
Select commit Hold shift + click to select a range
514822f
fix(catalog): apply the regular expression on the isolated layers of …
hugbe8 Mar 25, 2020
dc68fe3
fix(directions): search term change and map synchronization (#580)
pelord Feb 13, 2020
986f0bb
locale(mapTool): empty map
mbarbeau Feb 13, 2020
07679c8
refactor(map): remove not used alias property
mbarbeau Feb 13, 2020
e6b3574
chore(template): fix pull request template
mbarbeau Feb 13, 2020
229c81a
fix(search): provide projection service for coordinates search source
mbarbeau Feb 17, 2020
4e53a8d
locale(auth): add login lockout message
mbarbeau Feb 17, 2020
f0c33d5
fix(ogc-filter, style): better handling grouped layers (#581)
pelord Feb 20, 2020
b9a1727
fix(demo/toast-panel): fix spatial-filter alias in demo / resize chec…
PhilippeLafreniere18 Feb 20, 2020
1278cef
feat(datasource): retrieve query format from capabilities (#582)
mbarbeau Feb 24, 2020
e943f86
feat(datasource): retrieve options from api (#583)
mbarbeau Feb 24, 2020
e83a84e
fix(datasource): improve error handling
mbarbeau Feb 24, 2020
36bb5d0
chore(*): add package dependencies
mbarbeau Mar 2, 2020
b3cb8b3
fix(layer): add tile-watcher to vectortile-layer (#595)
mbarbeau Mar 4, 2020
92bbe07
feat(search-setting): Add a button to check/uncheck all sources (#589)
mbarbeau Mar 4, 2020
0ed466b
feat(context): allow user to filter context list (#588)
mbarbeau Mar 4, 2020
0eb7b21
fix(search) Last checked source result was kept into the search-resul…
pelord Mar 24, 2020
cb6226a
fix(layer): updateInResolutionRange works properly if maxResolution =…
drekss Mar 24, 2020
dc9cb5d
feat(import) configurable client side file size (#603)
pelord Mar 25, 2020
b7a6354
fix(spatial-filter): fix bug when _internal is not defined
mbarbeau Mar 25, 2020
62e00ee
fix(pointer summary) Fix context change, summary was not shown. (#607)
pelord Mar 25, 2020
b23693f
feat(search results): manage focus/unfocus and select action on searc…
PhilippeLafreniere18 Mar 25, 2020
41702e1
style(*): Group title emphasis opacity from 0.8 to 0.9 (#611)
pelord Mar 31, 2020
9ab8497
fix(query): fix Firefox and IE svg change bug (#610)
PhilippeLafreniere18 Mar 31, 2020
898544b
chore(build): build warn ng-packagr No name was provided for externa…
pelord Mar 31, 2020
fb018d5
ui(scale): better visibility on dark background
mbarbeau Mar 31, 2020
f7911db
feat(ogc-filter): Provide operator at the field scale (#608)
pelord Mar 31, 2020
8b86efb
chore(*) warn ng-packagr No name was provided for external module (#612)
pelord Mar 31, 2020
dba0e3e
fix(context): queryable must be saved
mbarbeau Apr 24, 2020
2085a17
fix(context): queryable must be saved
mbarbeau Apr 24, 2020
111f8fc
fix(queryFormat): fix layer's queryFormat htmlgml2 (#620)
PhilippeLafreniere18 Apr 30, 2020
8c07a9f
feat(QueryService): Add create geom for mapTag when geom is null on e…
Apr 30, 2020
8091a41
fix(TimeFilter): calendar year range, don't reset year range in UI (i…
Apr 30, 2020
30d5573
fix(time-filter): fix UTC time, language and style on selected date (…
PhilippeLafreniere18 Apr 30, 2020
b652565
fix(network): connection message after leaving the tab on the phone (…
drekss Apr 30, 2020
d8a1431
feat(context-list): add context list tool (alpha, add context) (#624)
PhilippeLafreniere18 Apr 30, 2020
20253a4
feat(import-export): ajout de l'aggregation pour gpx (#623)
LavoieO May 1, 2020
31c75a7
feat(layers): Enhanced table of content for layers management (#625)
pelord May 1, 2020
c44378b
fix(layer): prevent empty map message to be shown too quickly
mbarbeau May 4, 2020
f57405c
fix(layer-list): fix baselayer with select all and opacity CSS (#632)
PhilippeLafreniere18 May 4, 2020
1c09410
fix(map): tracking fix (#629)
drekss May 4, 2020
4acfbbc
fix(feature): excludeAttribute works with offlineButton (#628)
drekss May 4, 2020
fc08e71
feat (import/export) : export naming (#631)
LavoieO May 4, 2020
f95379c
lint(import-export)
mbarbeau May 4, 2020
e5dcbfd
feat(import): import cluster (#616)
drekss May 4, 2020
65a5175
locale(import): fix translate
mbarbeau May 4, 2020
29bac86
fix(layer-list): fix selection mode (#635)
PhilippeLafreniere18 May 6, 2020
20b3ff4
style(map-offline): remove console.log
mbarbeau May 7, 2020
79cfb52
fix(map-legend) listen to layers modification (#636)
pelord May 7, 2020
a6186dc
fix(map-legend) Hide all non active legend when allowShowAllLegends …
pelord May 8, 2020
5449857
add params to clusterStyle (#634)
drekss May 11, 2020
159806f
refactor(catalog): remove bad tags
mbarbeau May 11, 2020
4c59847
refactor(catalog): apply the regular expression on the isolated layer…
mbarbeau May 11, 2020
ea7f5b1
1.3.0
mbarbeau May 11, 2020
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 3 additions & 5 deletions .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,10 @@


**Does this PR introduce a breaking change?** (check one with "x")
```
[ ] Yes
[ ] No
```
- [ ] Yes
- [ ] No

If this PR contains a breaking change, please describe the impact and migration path for existing applications:
**If this PR contains a breaking change, please describe the impact and migration path for existing applications:**


**Other information**:
45 changes: 45 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,48 @@
# [1.3.0](https://github.com/infra-geo-ouverte/igo2-lib/compare/1.2.0...1.3.0) (2020-05-11)


### Bug Fixes

* **catalog:** apply the regular expression on the isolated layers of the first level of the catalog ([#599](https://github.com/infra-geo-ouverte/igo2-lib/issues/599)) ([514822f](https://github.com/infra-geo-ouverte/igo2-lib/commit/514822f26d8d74674fd9e84687d581a35581cd44))
* **context:** queryable must be saved ([dba0e3e](https://github.com/infra-geo-ouverte/igo2-lib/commit/dba0e3e33dd444851f7e3c5859924d37edb68711))
* **context:** queryable must be saved ([2085a17](https://github.com/infra-geo-ouverte/igo2-lib/commit/2085a178b89b5bd2a6865af7ac67ab36ba3487f6))
* **datasource:** improve error handling ([e83a84e](https://github.com/infra-geo-ouverte/igo2-lib/commit/e83a84ebaeb3fcfb63783cfde318125130859d32))
* **demo/toast-panel:** fix spatial-filter alias in demo / resize checkbox in zoom menu feature ([#586](https://github.com/infra-geo-ouverte/igo2-lib/issues/586)) ([b9a1727](https://github.com/infra-geo-ouverte/igo2-lib/commit/b9a17271105301e3d92e60dcd0f82808f24a9340))
* **directions:** search term change and map synchronization ([#580](https://github.com/infra-geo-ouverte/igo2-lib/issues/580)) ([dc68fe3](https://github.com/infra-geo-ouverte/igo2-lib/commit/dc68fe369a628e8090fae34948c6124348fad026))
* **feature:** excludeAttribute works with offlineButton ([#628](https://github.com/infra-geo-ouverte/igo2-lib/issues/628)) ([4acfbbc](https://github.com/infra-geo-ouverte/igo2-lib/commit/4acfbbcfce8530653845770bf669fff8eea4e654))
* **layer:** add tile-watcher to vectortile-layer ([#595](https://github.com/infra-geo-ouverte/igo2-lib/issues/595)) ([b3cb8b3](https://github.com/infra-geo-ouverte/igo2-lib/commit/b3cb8b301528d08bdea3bd6bb4a8395662c263fc))
* **layer:** prevent empty map message to be shown too quickly ([c44378b](https://github.com/infra-geo-ouverte/igo2-lib/commit/c44378bbf59c1777e3751023ebdbebf8cdf591e4))
* **layer:** updateInResolutionRange works properly if maxResolution = 0 ([#597](https://github.com/infra-geo-ouverte/igo2-lib/issues/597)) ([cb6226a](https://github.com/infra-geo-ouverte/igo2-lib/commit/cb6226aeb980845d79ffb63ffab89563310b2fe6))
* **layer-list:** fix baselayer with select all and opacity CSS ([#632](https://github.com/infra-geo-ouverte/igo2-lib/issues/632)) ([f57405c](https://github.com/infra-geo-ouverte/igo2-lib/commit/f57405c51a5bf631136907105e6ebe5b6d99bbec))
* **layer-list:** fix selection mode ([#635](https://github.com/infra-geo-ouverte/igo2-lib/issues/635)) ([29bac86](https://github.com/infra-geo-ouverte/igo2-lib/commit/29bac86bd4136153f210587324d132c72e8f1a10))
* **map:** tracking fix ([#629](https://github.com/infra-geo-ouverte/igo2-lib/issues/629)) ([1c09410](https://github.com/infra-geo-ouverte/igo2-lib/commit/1c0941038936f47a50e9248be91830d4bd57c48d))
* **network:** connection message after leaving the tab on the phone ([#614](https://github.com/infra-geo-ouverte/igo2-lib/issues/614)) ([b652565](https://github.com/infra-geo-ouverte/igo2-lib/commit/b652565933e382c39cba8d82f43954c49e079356))
* **ogc-filter, style:** better handling grouped layers ([#581](https://github.com/infra-geo-ouverte/igo2-lib/issues/581)) ([f0c33d5](https://github.com/infra-geo-ouverte/igo2-lib/commit/f0c33d5d871b8e43a6e6fca314ecd726803f4b68))
* **query:** fix Firefox and IE svg change bug ([#610](https://github.com/infra-geo-ouverte/igo2-lib/issues/610)) ([9ab8497](https://github.com/infra-geo-ouverte/igo2-lib/commit/9ab8497abf33b029918520478f3b55173f777b5d))
* **queryFormat:** fix layer's queryFormat htmlgml2 ([#620](https://github.com/infra-geo-ouverte/igo2-lib/issues/620)) ([111f8fc](https://github.com/infra-geo-ouverte/igo2-lib/commit/111f8fc5708c4d0a8e72b4ab9762603c2d5a7cc5))
* **search:** provide projection service for coordinates search source ([229c81a](https://github.com/infra-geo-ouverte/igo2-lib/commit/229c81aa7ccf7d8910458c7291ea8ee16fce15d0))
* **spatial-filter:** fix bug when _internal is not defined ([b7a6354](https://github.com/infra-geo-ouverte/igo2-lib/commit/b7a63543238ad45722da27f262c3815036faa841))
* **time-filter:** fix UTC time, language and style on selected date ([#621](https://github.com/infra-geo-ouverte/igo2-lib/issues/621)) ([30d5573](https://github.com/infra-geo-ouverte/igo2-lib/commit/30d557332cf53d7f72711cf319af8e05dc9e2676))
* **TimeFilter:** calendar year range, don't reset year range in UI (igo2 [#359](https://github.com/infra-geo-ouverte/igo2-lib/issues/359)) ([#619](https://github.com/infra-geo-ouverte/igo2-lib/issues/619)) ([8091a41](https://github.com/infra-geo-ouverte/igo2-lib/commit/8091a41cc22ff6ece7e8d41db38a0176f1216994))


### Features

* **catalog:** add catalog composite ([#559](https://github.com/infra-geo-ouverte/igo2-lib/issues/559)) ([2d729fc](https://github.com/infra-geo-ouverte/igo2-lib/commit/2d729fcfc62469e69eeae40e133e712a94d33fa1))
* **context:** allow user to filter context list ([#588](https://github.com/infra-geo-ouverte/igo2-lib/issues/588)) ([0ed466b](https://github.com/infra-geo-ouverte/igo2-lib/commit/0ed466b08ab53a24ccb312aff809c02d5c00787b))
* **context-list:** add context list tool (alpha, add context) ([#624](https://github.com/infra-geo-ouverte/igo2-lib/issues/624)) ([d8a1431](https://github.com/infra-geo-ouverte/igo2-lib/commit/d8a143185733f143cad27cd7de66e943d7e4b049))
* **datasource:** retrieve options from api ([#583](https://github.com/infra-geo-ouverte/igo2-lib/issues/583)) ([e943f86](https://github.com/infra-geo-ouverte/igo2-lib/commit/e943f86e52c988671c72c840e7eff0f0054526fc))
* **datasource:** retrieve query format from capabilities ([#582](https://github.com/infra-geo-ouverte/igo2-lib/issues/582)) ([1278cef](https://github.com/infra-geo-ouverte/igo2-lib/commit/1278cef19772558b8f8785f5f4d5d9466bb43d9b))
* **import:** import cluster ([#616](https://github.com/infra-geo-ouverte/igo2-lib/issues/616)) ([e5dcbfd](https://github.com/infra-geo-ouverte/igo2-lib/commit/e5dcbfd5d9f5c12823db42213563d5678a24a63d))
* **import-export:** ajout de l'aggregation pour gpx ([#623](https://github.com/infra-geo-ouverte/igo2-lib/issues/623)) ([20253a4](https://github.com/infra-geo-ouverte/igo2-lib/commit/20253a4d41aa13b10f7513027e467b07b2c7fc38)), closes [#599](https://github.com/infra-geo-ouverte/igo2-lib/issues/599)
* **layers:** Enhanced table of content for layers management ([#625](https://github.com/infra-geo-ouverte/igo2-lib/issues/625)) ([31c75a7](https://github.com/infra-geo-ouverte/igo2-lib/commit/31c75a70bd5e1658cfbc746e77fb811fcb2cb690))
* **ogc-filter:** Provide operator at the field scale ([#608](https://github.com/infra-geo-ouverte/igo2-lib/issues/608)) ([f7911db](https://github.com/infra-geo-ouverte/igo2-lib/commit/f7911dbef4c27cb1d1e1175a9914ae95ef10df8d))
* **QueryService:** Add create geom for mapTag when geom is null on extractData [#617](https://github.com/infra-geo-ouverte/igo2-lib/issues/617) ([#618](https://github.com/infra-geo-ouverte/igo2-lib/issues/618)) ([8c07a9f](https://github.com/infra-geo-ouverte/igo2-lib/commit/8c07a9fb619e30e4846909aa2c0420f627696d96))
* **search results:** manage focus/unfocus and select action on search results (and get feature info) ([#585](https://github.com/infra-geo-ouverte/igo2-lib/issues/585)) ([b23693f](https://github.com/infra-geo-ouverte/igo2-lib/commit/b23693fd4ceddda61a777633790718ed1c10ee36))
* **search-setting:** Add a button to check/uncheck all sources ([#589](https://github.com/infra-geo-ouverte/igo2-lib/issues/589)) ([92bbe07](https://github.com/infra-geo-ouverte/igo2-lib/commit/92bbe07403b320c232acae7ec140e7576d9bbf43))



# [1.2.0](https://github.com/infra-geo-ouverte/igo2-lib/compare/1.1.0...1.2.0) (2020-02-10)


Expand Down
1 change: 1 addition & 0 deletions demo/src/app/app.component.html
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ <h5>{{version.lib}}</h5>

<a mat-list-item routerLink="simple-map">Simple map</a>
<a mat-list-item routerLink="layer">Layer</a>
<a mat-list-item routerLink="legend">Legend</a>
<a mat-list-item routerLink="overlay">Overlay</a>
<a mat-list-item routerLink="geometry">Geometry</a>
<a mat-list-item routerLink="feature">Feature</a>
Expand Down
2 changes: 2 additions & 0 deletions demo/src/app/app.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ import { AppAuthFormModule } from './auth/auth-form/auth-form.module';

import { AppSimpleMapModule } from './geo/simple-map/simple-map.module';
import { AppLayerModule } from './geo/layer/layer.module';
import { AppLegendModule } from './geo/legend/legend.module';
import { AppOverlayModule } from './geo/overlay/overlay.module';
import { AppGeometryModule } from './geo/geometry/geometry.module';
import { AppFeatureModule } from './geo/feature/feature.module';
Expand Down Expand Up @@ -83,6 +84,7 @@ import { AppComponent } from './app.component';

AppSimpleMapModule,
AppLayerModule,
AppLegendModule,
AppOverlayModule,
AppGeometryModule,
AppFeatureModule,
Expand Down
4 changes: 2 additions & 2 deletions demo/src/app/context/context/context.component.html
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,11 @@
</igo-map-browser>

<igo-panel title="Contexts list">
<igo-context-list igoContextListBinding></igo-context-list>
<igo-context-list igoContextListBinding [map]="map"></igo-context-list>
</igo-panel>

<igo-panel title="Layers">
<igo-layer-list igoLayerListBinding>
<igo-layer-list igoLayerListBinding [map]="map">
<ng-template #igoLayerItemToolbar let-layer="layer">
<igo-metadata-button [layer]="layer"></igo-metadata-button>
</ng-template>
Expand Down
1 change: 1 addition & 0 deletions demo/src/app/geo/layer/layer.component.html
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@

<igo-panel title="Layers">
<igo-layer-list
[map]="map"
[layers]="map.layers"
[expandLegendOfVisibleLayers]="false"
floatLabel="never"
Expand Down
2 changes: 1 addition & 1 deletion demo/src/app/geo/layer/layer.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ export class AppLayerComponent {
fieldNameGeometry: 'geometry',
maxFeatures: 10000,
version: '2.0.0',
outputFormat: 'geojson_utf8',
outputFormat: undefined,
outputFormatDownload: 'shp'
},
ogcFilters: {
Expand Down
15 changes: 15 additions & 0 deletions demo/src/app/geo/legend/legend-routing.module.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
import { Routes, RouterModule } from '@angular/router';
import { ModuleWithProviders } from '@angular/core';

import { AppLegendComponent } from './legend.component';

const routes: Routes = [
{
path: 'legend',
component: AppLegendComponent
}
];

export const AppLegendRoutingModule: ModuleWithProviders = RouterModule.forChild(
routes
);
27 changes: 27 additions & 0 deletions demo/src/app/geo/legend/legend.component.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
<mat-card>
<mat-card-subtitle>Geo</mat-card-subtitle>
<mat-card-title>Simple Map with a legend list</mat-card-title>
<mat-card-content>
<li>Dependencies: LanguageService</li>

<br>
See the <a href="https://github.com/infra-geo-ouverte/igo2-lib/tree/master/demo/src/app/geo/layer">code of this
example</a>
<hr>
</mat-card-content>

<igo-map-browser [map]="map" [view]="view">
<igo-zoom-button [map]="map" color="primary"></igo-zoom-button>
</igo-map-browser>

<igo-panel title="Legends">
<igo-layer-legend-list [layers]="map.layers"
[excludeBaseLayers]="true"
[allowShowAllLegends]="true"
[updateLegendOnResolutionChange]="false"
[showAllLegendsValue]="false">
</igo-layer-legend-list>

</igo-panel>

</mat-card>
9 changes: 9 additions & 0 deletions demo/src/app/geo/legend/legend.component.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
igo-map-browser {
width: 100%;
height: 300px;
}

igo-panel {
width: 100%;
padding-top: 10px;
}
221 changes: 221 additions & 0 deletions demo/src/app/geo/legend/legend.component.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,221 @@
import { Component } from '@angular/core';

import { LanguageService } from '@igo2/core';
import {
IgoMap,
DataSourceService,
LayerService,
WMSDataSourceOptions,
LayerOptions,
WFSDataSourceOptions,
OgcFilterableDataSourceOptions,
MetadataLayerOptions
} from '@igo2/geo';

@Component({
selector: 'app-legend',
templateUrl: './legend.component.html',
styleUrls: ['./legend.component.scss']
})
export class AppLegendComponent {
public map = new IgoMap({
controls: {
attribution: {
collapsed: true
}
}
});

public view = {
center: [-73, 47.2],
zoom: 7
};

constructor(
private languageService: LanguageService,
private dataSourceService: DataSourceService,
private layerService: LayerService
) {
this.dataSourceService
.createAsyncDataSource({
type: 'osm'
})
.subscribe(dataSource => {
this.map.addLayer(
this.layerService.createLayer({
title: 'OSM',
visible: true,
baseLayer: true,
source: dataSource
})
);
});

interface WFSoptions
extends WFSDataSourceOptions,
OgcFilterableDataSourceOptions {}

const wfsDatasource: WFSoptions = {
type: 'wfs',
url: 'https://geoegl.msp.gouv.qc.ca/apis/ws/igo_gouvouvert.fcgi',
params: {
featureTypes: 'vg_observation_v_autre_wmst',
fieldNameGeometry: 'geometry',
maxFeatures: 10000,
version: '2.0.0',
outputFormat: undefined,
outputFormatDownload: 'shp'
},
ogcFilters: {
enabled: true,
editable: true,
filters: {
operator: 'PropertyIsEqualTo',
propertyName: 'code_municipalite',
expression: '10043'
}
}
};

this.dataSourceService
.createAsyncDataSource(wfsDatasource)
.subscribe(dataSource => {
const layer: LayerOptions = {
title: 'WFS ',
visible: true,
source: dataSource
};
this.map.addLayer(this.layerService.createLayer(layer));
});

this.layerService
.createAsyncLayer({
sourceOptions: {
type: 'wms',
url: 'https://geoegl.msp.gouv.qc.ca/apis/ws/igo_gouvouvert.fcgi',
optionsFromCapabilities: true,
params: {
LAYERS: 'MELS_CS_ANGLO_S',
VERSION: '1.3.0'
}
}
})
.subscribe(l => this.map.addLayer(l));

this.layerService
.createAsyncLayer({
title: 'Réseau routier',
visible: false,
sourceOptions: {
type: 'wms',
url: 'https://geoegl.msp.gouv.qc.ca/apis/ws/swtq',
params: {
LAYERS: 'bgr_v_sous_route_res_sup_act',
VERSION: '1.3.0'
}
}
})
.subscribe(l => this.map.addLayer(l));

this.layerService
.createAsyncLayer({
title: 'lieu habité',
visible: false,
sourceOptions: {
type: 'wms',
url: 'https://geoegl.msp.gouv.qc.ca/apis/ws/swtq',
optionsFromCapabilities: true,
params: {
LAYERS: 'lieuhabite',
VERSION: '1.3.0'
}
}
})
.subscribe(l => this.map.addLayer(l));

this.layerService
.createAsyncLayer({
title: 'sh_dis_eco',
visible: false,
sourceOptions: {
type: 'wms',
url: 'https://geoegl.msp.gouv.qc.ca/apis/ws/mffpecofor.fcgi',
optionsFromCapabilities: true,
params: {
LAYERS: 'sh_dis_eco',
VERSION: '1.3.0'
}
}
})
.subscribe(l => this.map.addLayer(l));

this.layerService
.createAsyncLayer({
title: 'nurc:Arc_Sample_Parent',
visible: false,
legendOptions: {
// collapsed: false,
display: true,
// url: 'https://v.seloger.com/s/width/1144/visuels/0/m/l/4/0ml42xbt1n3itaboek3qec5dtskdgw6nlscu7j69k.jpg',
stylesAvailable: [
{ name: 'rain', title: 'Pluie' },
{ name: 'raster', title: 'Défaut' }
] //
},
sourceOptions: {
type: 'wms',
url: 'https://demo.geo-solutions.it/geoserver/ows',
optionsFromCapabilities: true,
params: {
LAYERS: 'nurc:Arc_Sample', // , test:Linea_costa
VERSION: '1.3.0'
}
}
})
.subscribe(l => this.map.addLayer(l));

this.layerService
.createAsyncLayer({
title: 'Avertissements routier',
visible: false,
sourceOptions: {
type: 'wms',
url: 'https://geoegl.msp.gouv.qc.ca/apis/ws/swtq',
params: {
LAYERS: 'evenements',
VERSION: '1.3.0'
}
}
})
.subscribe(l => this.map.addLayer(l));

const datasource: WMSDataSourceOptions = {
type: 'wms',
url: 'https://geoegl.msp.gouv.qc.ca/apis/ws/igo_gouvouvert.fcgi',
refreshIntervalSec: 15,
params: {
LAYERS: 'vg_observation_v_inondation_embacle_wmst',
VERSION: '1.3.0'
}
};

interface LayerOptionsWithMetadata
extends LayerOptions,
MetadataLayerOptions {}

this.dataSourceService
.createAsyncDataSource(datasource)
.subscribe(dataSource => {
const layer: LayerOptionsWithMetadata = {
title: 'Embâcle',
source: dataSource,
metadata: {
url:
'https://www.donneesquebec.ca/recherche/fr/dataset/historique-publique-d-embacles-repertories-au-msp',
extern: true
}
};
this.map.addLayer(this.layerService.createLayer(layer));
});
}
}
Loading