comparison client/src/components/map/layers.js @ 3335:59db0b5921c5

client: added layer for fairway availability diagrams with demo diagrams
author Markus Kottlaender <markus@intevation.de>
date Mon, 20 May 2019 17:34:43 +0200
parents 80037790032d
children b01bf2399c20
comparison
equal deleted inserted replaced
3334:8c96b7379aea 3335:59db0b5921c5
458 zIndex: 1, 458 zIndex: 1,
459 style: styles.bottleneckStatus, 459 style: styles.bottleneckStatus,
460 source 460 source
461 }); 461 });
462 })(), 462 })(),
463 (function() {
464 const source = new VectorSource({ strategy: bboxStrategy });
465 source.setLoader(
466 buildVectorLoader(
467 {
468 featureTypes: ["bottlenecks_geoserver"],
469 geometryName: "area"
470 },
471 source,
472 false,
473 async f => {
474 if (f.get("fa_critical")) {
475 f.set("fa_data", []);
476 }
477 return f;
478 }
479 )
480 );
481 return new VectorLayer({
482 id: "BOTTLENECKFAIRWAYAVAILABILITY",
483 label: "Bottlenecks Fairway Availability",
484 forLegendStyle: { point: true, resolution: 16 },
485 visible: false,
486 zIndex: 1,
487 style: styles.bottleneckFairwayAvailability,
488 source
489 });
490 })(),
463 new ImageLayer({ 491 new ImageLayer({
464 id: "DISTANCEMARKS", 492 id: "DISTANCEMARKS",
465 label: "Distance Marks", 493 label: "Distance Marks",
466 maxResolution: 10, 494 maxResolution: 10,
467 minResolution: 0, 495 minResolution: 0,