|
|
@@ -79,7 +79,7 @@ export class AppComponent {
|
|
|
dataProjection: 'EPSG:5514',
|
|
|
}),
|
|
|
url: (extent) => {
|
|
|
- console.log(extent);
|
|
|
+ const kulturaKod = 1; // Doesn't seem to work
|
|
|
// eslint-disable-next-line prettier/prettier
|
|
|
return 'http://localhost:8085/https://gis.lesprojekt.cz/cgi-bin/mapserv?map=/home/dima/maps/foodie/lpis.map' +
|
|
|
'&service=WFS' +
|
|
|
@@ -89,10 +89,11 @@ export class AppComponent {
|
|
|
'&COUNT=100' +
|
|
|
'&outputformat=geojson' +
|
|
|
'&SRSNAME=EPSG:5514' +
|
|
|
- `&BBOX=${extent.join(',')}`; //+
|
|
|
- //`&%3Cogc:Filter%20xmlns:ogc=%22http://www.opengis.net/ogc%22%3E%3Cogc:PropertyIsEqualTo%3E%3Cogc:PropertyName%3Ekulturakod%3C/ogc:PropertyName%3E%3Cogc:Literal%3E${3}%3C/ogc:Literal%3E%3C/ogc:PropertyIsEqualTo%3E%3Cgml:Box%3E`; //%3Cgml:coordinates%3E${
|
|
|
+ `&BBOX=${extent.join(',')}` +
|
|
|
+ // eslint-disable-next-line prettier/prettier
|
|
|
+ `&<ogc:Filter xmlns:ogc="http://www.opengis.net/ogc"><ogc:PropertyIsEqualTo><ogc:PropertyName>kulturakod</ogc:PropertyName><ogc:Literal>${kulturaKod}</ogc:Literal></ogc:PropertyIsEqualTo></ogc:Filter>`;
|
|
|
+ //%3Cgml:Box%3E%3Cgml:coordinates%3E${
|
|
|
//extent.join(',')
|
|
|
- // eslint-disable-next-line prettier/prettier
|
|
|
//}%3C/gml:coordinates%3E%3C/gml:Box%3E%3C/ogc:Filter%3E`;
|
|
|
},
|
|
|
strategy: bboxStrategy,
|
|
|
@@ -145,7 +146,7 @@ export class AppComponent {
|
|
|
],
|
|
|
popUpDisplay: 'none',
|
|
|
default_layers: [
|
|
|
- /* One baselayer */
|
|
|
+ /* Baselayers */
|
|
|
new Tile({
|
|
|
source: new OSM(),
|
|
|
visible: true,
|
|
|
@@ -155,10 +156,10 @@ export class AppComponent {
|
|
|
removable: false,
|
|
|
},
|
|
|
}),
|
|
|
- /* One thematic layer */
|
|
|
+ /* Thematic layers */
|
|
|
new VectorLayer({
|
|
|
properties: {
|
|
|
- title: 'Farma',
|
|
|
+ title: 'Farm',
|
|
|
synchronize: false,
|
|
|
cluster: false,
|
|
|
inlineLegend: true,
|
|
|
@@ -183,7 +184,7 @@ export class AppComponent {
|
|
|
editor: {
|
|
|
editable: false,
|
|
|
},
|
|
|
- //sld: fieldSld,
|
|
|
+ sld: fieldSld,
|
|
|
//path: 'User generated',
|
|
|
},
|
|
|
source: lpisSource,
|