comparison client/src/store/fairwayavailability.js @ 5254:09ec6a748fca new-fwa

Fixed front end for FWA vs LDC, too. The code seems to be a bit redundant here...
author wilde@azure1.rgb.intevation.de
date Wed, 13 May 2020 10:39:36 +0200
parents d855426a6e5d
children 791a372553a0
comparison
equal deleted inserted replaced
5253:878d52d95e37 5254:09ec6a748fca
310 widthLimit2, 310 widthLimit2,
311 limitingFactor, 311 limitingFactor,
312 type 312 type
313 } = options; 313 } = options;
314 let { from, to } = options; 314 let { from, to } = options;
315 let name = feature.hasOwnProperty("properties") 315 let name = "";
316 ? feature.properties.bottleneck_id 316 if (type === TYPES.BOTTLENECK) {
317 : feature.get("bottleneck_id"); 317 name = feature.hasOwnProperty("properties")
318 ? feature.properties.bottleneck_id
319 : feature.get("bottleneck_id");
320 } else {
321 name = feature.hasOwnProperty("properties")
322 ? feature.properties.name
323 : feature.get("objnam");
324 }
318 [from, to] = getIntervallBorders(from, to, frequency); 325 [from, to] = getIntervallBorders(from, to, frequency);
319 const start = encodeURIComponent("00:00:00+00:00"); 326 const start = encodeURIComponent("00:00:00+00:00");
320 const end = encodeURIComponent("23:59:59+00:00"); 327 const end = encodeURIComponent("23:59:59+00:00");
321 let additionalParams = ""; 328 let additionalParams = "";
322 let endpoint = type || TYPES.BOTTLENECK; 329 let endpoint = type || TYPES.BOTTLENECK;