|
@@ -13,7 +13,7 @@ export class IrrigationService {
|
|
|
'FORMAT': 'image/png',
|
|
'FORMAT': 'image/png',
|
|
|
'QUERY_LAYERS': 'water_surface_latest',
|
|
'QUERY_LAYERS': 'water_surface_latest',
|
|
|
'LAYERS': 'water_surface_latest',
|
|
'LAYERS': 'water_surface_latest',
|
|
|
- 'INFO_FORMAT': 'text/plain',
|
|
|
|
|
|
|
+ 'INFO_FORMAT': 'application/json',
|
|
|
'I': 100,
|
|
'I': 100,
|
|
|
'J': 129,
|
|
'J': 129,
|
|
|
'WIDTH': 256,
|
|
'WIDTH': 256,
|
|
@@ -23,13 +23,11 @@ export class IrrigationService {
|
|
|
'BBOX':
|
|
'BBOX':
|
|
|
'2037505.4259696566,6130861.164697416,2038728.4184222193,6132084.157149979',
|
|
'2037505.4259696566,6130861.164697416,2038728.4184222193,6132084.157149979',
|
|
|
};
|
|
};
|
|
|
- this.httpClient
|
|
|
|
|
- .get('https://www.gis.atapex.sk/geoserver/agrihub/wms', {
|
|
|
|
|
|
|
+ return this.httpClient.get(
|
|
|
|
|
+ 'https://www.gis.atapex.sk/geoserver/agrihub/wms',
|
|
|
|
|
+ {
|
|
|
params,
|
|
params,
|
|
|
- responseType: 'text',
|
|
|
|
|
- })
|
|
|
|
|
- .subscribe((data) => {
|
|
|
|
|
- console.log(data);
|
|
|
|
|
- });
|
|
|
|
|
|
|
+ }
|
|
|
|
|
+ );
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|