comparison client/src/components/map/layers.js @ 3434:9fba1be118e7

client: data accuracy: Show diagrams for gauges, bottlenecks and stretches on map.
author Raimund Renkert <raimund.renkert@intevation.de>
date Fri, 24 May 2019 09:51:04 +0200
parents e56b280582ae
children d6532429e703
comparison
equal deleted inserted replaced
3433:e56b280582ae 3434:9fba1be118e7
516 zIndex: 1, 516 zIndex: 1,
517 style: styles.bottleneckFairwayAvailability, 517 style: styles.bottleneckFairwayAvailability,
518 source 518 source
519 }); 519 });
520 })(), 520 })(),
521 (function() {
522 const source = new VectorSource({ strategy: bboxStrategy });
523 source.setLoader(
524 buildVectorLoader(
525 {
526 featureTypes: ["bottlenecks_geoserver", "gauges_geoserver", "stretches_geoserver"],
527 },
528 source,
529 true,
530 async (f, store) => {
531 return f
532 }
533 )
534 );
535 return new VectorLayer({
536 id: "DATAAVAILABILITY",
537 label: "Data Availability/Accuracy",
538 forLegendStyle: { point: true, resolution: 16 },
539 visible: false,
540 zIndex: 1,
541 style: styles.dataAvailability,
542 source
543 });
544 })(),
521 new ImageLayer({ 545 new ImageLayer({
522 id: "DISTANCEMARKS", 546 id: "DISTANCEMARKS",
523 label: "Distance Marks", 547 label: "Distance Marks",
524 maxResolution: 10, 548 maxResolution: 10,
525 minResolution: 0, 549 minResolution: 0,