diff options
author | Christopher Baines <cb15g11@soton.ac.uk> | 2015-03-21 22:15:25 +0000 |
---|---|---|
committer | Christopher Baines <cb15g11@soton.ac.uk> | 2015-03-21 22:15:25 +0000 |
commit | c10d870bd91fa2564e9079a040c20750505045eb (patch) | |
tree | 817dddda53c9da15e395dd835c1746abf6c008dc | |
parent | 7e14a14842b96916cc5dadfcef04624d2a1854e4 (diff) | |
download | leaflet-soton-c10d870bd91fa2564e9079a040c20750505045eb.tar leaflet-soton-c10d870bd91fa2564e9079a040c20750505045eb.tar.gz |
Workaround for Chromium/Android WebView issue
There seems to be an issue with the clickable region of svg textPath elements.
This sets the pointer-events attribute to none, to avoid it being clickable.
The actual route underneath receives the event instead.
-rw-r--r-- | resources/leaflet-route/leaflet-route.js | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/resources/leaflet-route/leaflet-route.js b/resources/leaflet-route/leaflet-route.js index 1fa8e7c..d0b14df 100644 --- a/resources/leaflet-route/leaflet-route.js +++ b/resources/leaflet-route/leaflet-route.js @@ -108,7 +108,8 @@ L.Route = L.FeatureGroup.extend({ offset: 3, attributes: { fill: 'black', - fontSize: 24 + fontSize: 24, + "pointer-events": "none" } }); |