comparison client/src/store/map.js @ 2456:194b42f28ea3

linting
author Markus Kottlaender <markus@intevation.de>
date Mon, 04 Mar 2019 07:38:34 +0100
parents 960550ccca55
children 7247eb03e7c0
comparison
equal deleted inserted replaced
2455:54c9fe587fe6 2456:194b42f28ea3
384 source: new VectorSource({ 384 source: new VectorSource({
385 strategy: bboxStrategy 385 strategy: bboxStrategy
386 }), 386 }),
387 style: function(feature) { 387 style: function(feature) {
388 return new Style({ 388 return new Style({
389 image: new RegularShape({ 389 image: new RegularShape({
390 radius: 6, 390 radius: 6,
391 fill: new Fill({ color: "rgba(255, 255, 0, 0.1)" }), 391 fill: new Fill({ color: "rgba(255, 255, 0, 0.1)" }),
392 stroke: new Stroke({ color: "red", width: 1 }), 392 stroke: new Stroke({ color: "red", width: 1 }),
393 points: 3, 393 points: 3,
394 rotation: 0, 394 rotation: 0,
395 angle: 0 395 angle: 0
396 }),
397 text: new Text({
398 font: '10px "Open Sans", "sans-serif"',
399 offsetY: 10,
400 fill: new Fill({
401 color: "black"
396 }), 402 }),
397 text: new Text({ 403 text: feature.get("objname")
398 font: '10px "Open Sans", "sans-serif"',
399 offsetY: 10,
400 fill: new Fill({
401 color: "black"
402 }),
403 text: feature.get("objname")
404 }) 404 })
405 }); 405 });
406 }, 406 },
407 maxResolution: 100, 407 maxResolution: 100,
408 minResolution: 0 408 minResolution: 0
409 }), 409 }),
410 isVisible: true, 410 isVisible: true,
411 showInLegend: true, 411 showInLegend: true
412 }, 412 },
413 { 413 {
414 name: LAYERS.DRAWTOOL, 414 name: LAYERS.DRAWTOOL,
415 data: new VectorLayer({ 415 data: new VectorLayer({
416 source: new VectorSource({ wrapX: false }), 416 source: new VectorSource({ wrapX: false }),