|
|
@@ -81,7 +81,8 @@ export class AppService {
|
|
|
url: (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' +
|
|
|
+ let proxyPath = window.location.hostname.includes('localhost') ? 'http://localhost:8085/' : '/proxy/';
|
|
|
+ return proxyPath + 'https://gis.lesprojekt.cz/cgi-bin/mapserv?map=/home/dima/maps/foodie/lpis.map' +
|
|
|
'&service=WFS' +
|
|
|
'&VERSION=1.1.0' +
|
|
|
'&REQUEST=GetFeature' +
|