Mercurial > gemma
changeset 2166:69c49301d689
map.js: GetFeaturesAtPixel added hitTolerance:7.
author | Bjoern Schilberg <bjoern@intevation.de> |
---|---|
date | Fri, 08 Feb 2019 14:56:29 +0100 |
parents | 82dad8d808a7 |
children | 40f26fbc505f |
files | client/src/store/map.js |
diffstat | 1 files changed, 3 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/client/src/store/map.js Fri Feb 08 13:53:50 2019 +0100 +++ b/client/src/store/map.js Fri Feb 08 14:56:29 2019 +0100 @@ -625,7 +625,9 @@ event => { commit("setIdentifiedFeatures", []); // checking our WFS layers - var features = state.openLayersMap.getFeaturesAtPixel(event.pixel); + var features = state.openLayersMap.getFeaturesAtPixel(event.pixel, { + hitTolerance: 7 + }); if (features) { commit("setIdentifiedFeatures", features);