summaryrefslogtreecommitdiff
path: root/resources/leaflet-route/leaflet-route.js
diff options
context:
space:
mode:
authorChristopher Baines <cb15g11@soton.ac.uk>2015-03-21 22:15:25 +0000
committerChristopher Baines <cb15g11@soton.ac.uk>2015-03-21 22:15:25 +0000
commitc10d870bd91fa2564e9079a040c20750505045eb (patch)
tree817dddda53c9da15e395dd835c1746abf6c008dc /resources/leaflet-route/leaflet-route.js
parent7e14a14842b96916cc5dadfcef04624d2a1854e4 (diff)
downloadleaflet-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.
Diffstat (limited to 'resources/leaflet-route/leaflet-route.js')
-rw-r--r--resources/leaflet-route/leaflet-route.js3
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"
}
});