简体   繁体   English

为什么Leaflet的choroplet教程地图不适用于手机?

[英]Why is Leaflet's choroplet tutorial map not working on cellphone?

I'm building a choroplet map using the choroplet tutorial on Leaflet: https://leafletjs.com/examples/choropleth/example.html 我正在使用Leaflet上的choroplet教程构建一个choroplet地图: https ://leafletjs.com/examples/choropleth/example.html

It works perfectly on desktop but is not working on my cellphone. 它在桌面上完美运行,但不能在我的手机上运行。 I'm on Firefox (Android) and I can't do any mouse hover and when clicking on a State it zooms instead of showing the mouse hover. 我在Firefox(Android)上,我不能做任何鼠标悬停,当点击状态时,它会缩放而不是显示鼠标悬停。 Totally not working. 完全没有用。 How can I fix it? 我该如何解决?

I think the best thing would be to use the click event. 我认为最好的方法是使用click事件。 It works with the example. 它适用于该示例。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM