单张MultipolygonField小部件,不接收触摸事件 [英] Leaflet MultipolygonField widget, not receiving touch events
问题描述
然而,在三星平板电脑上使用Chrome或Firefox或本地浏览器,虽然我可以选择工具来开始绘制多边形,通过触摸它,不可能在地图上放置任何点。
似乎就像小部件不会对任何触摸/打击/打击事件做出反应。
有人遇到这样的事吗?我已经在django传单中发布了相关问题,我还在等待提示
Leaflet-draw 0.2.4,即使用在django-leaflet中启用绘图,不支持触摸了
Leaflet-draw 0.3.0添加了触摸支持,在django-leaflet 中存在一个拉动请求来更新它。没有太多活动。
您应该能够通过下载新版本的leaflet-draw来覆盖该文件,并将其添加到目录您的Django应用程式中的静态/传单/绘图/
On my desktop using Django-1.9 admin, on Firefox, the django-leaflet MultipolygonField widget works as expected.
However, on a Samsung tablet using either Chrome or Firefox or the native browser, although I can select the tool to start drawing the polygon, by touching it, it is impossible to place any point on the map.
It seems like the widget does not respond to any touch/hit/punch event.
Is anybody else experiencing something like that? I have posted a relevant question in django-leaflet and I am still waiting for a hint.
Leaflet-draw 0.2.4, which is used to enable drawing in django-leaflet, doesn't support touch yet.
Leaflet-draw 0.3.0 adds touch support, and a pull request exists to update it in django-leaflet. Not much activity there though.
You should be able to override the file by downloading the new version of leaflet-draw and add that to a directory static/leaflet/draw/
in your Django app.
这篇关于单张MultipolygonField小部件,不接收触摸事件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!