comparison client/src/store/map.js @ 2166:69c49301d689

map.js: GetFeaturesAtPixel added hitTolerance:7.
author Bjoern Schilberg <bjoern@intevation.de>
date Fri, 08 Feb 2019 14:56:29 +0100
parents 8be0fbac2297
children d0498088894f
comparison
equal deleted inserted replaced
2165:82dad8d808a7 2166:69c49301d689
623 state.identifyTool = state.openLayersMap.on( 623 state.identifyTool = state.openLayersMap.on(
624 ["singleclick", "dblclick"], 624 ["singleclick", "dblclick"],
625 event => { 625 event => {
626 commit("setIdentifiedFeatures", []); 626 commit("setIdentifiedFeatures", []);
627 // checking our WFS layers 627 // checking our WFS layers
628 var features = state.openLayersMap.getFeaturesAtPixel(event.pixel); 628 var features = state.openLayersMap.getFeaturesAtPixel(event.pixel, {
629 hitTolerance: 7
630 });
629 if (features) { 631 if (features) {
630 commit("setIdentifiedFeatures", features); 632 commit("setIdentifiedFeatures", features);
631 633
632 // get selected bottleneck from identified features 634 // get selected bottleneck from identified features
633 for (let feature of features) { 635 for (let feature of features) {