Mercurial > gemma
comparison client/src/store/map.js @ 1395:210e9f16f8a0
delete cross profiles from localstorage
author | Markus Kottlaender <markus@intevation.de> |
---|---|
date | Wed, 28 Nov 2018 14:28:21 +0100 |
parents | d0c4d17ee7ab |
children | 7fa030127b05 |
comparison
equal
deleted
inserted
replaced
1394:b350b0b5cb6c | 1395:210e9f16f8a0 |
---|---|
457 cutTool.setActive(false); | 457 cutTool.setActive(false); |
458 cutTool.on("drawstart", () => { | 458 cutTool.on("drawstart", () => { |
459 cutVectorSrc.clear(); | 459 cutVectorSrc.clear(); |
460 }); | 460 }); |
461 cutTool.on("drawend", event => { | 461 cutTool.on("drawend", event => { |
462 commit("fairwayprofile/selectedCut", null, { root: true }); | |
462 dispatch("fairwayprofile/cut", event.feature, { root: true }); | 463 dispatch("fairwayprofile/cut", event.feature, { root: true }); |
463 }); | 464 }); |
464 | 465 |
465 map.addInteraction(lineTool); | 466 map.addInteraction(lineTool); |
466 map.addInteraction(cutTool); | 467 map.addInteraction(cutTool); |