简体   繁体   English

如何在 pyqt5 中实现交互式 map?

[英]How to implement an interactive map in pyqt5?

I have a pyqt5 app which i want to add to a tab with an interactive map that can be clicked to create markers, allows zomming and allows moving around.我有一个 pyqt5 应用程序,我想将它添加到一个带有交互式 map 的选项卡中,可以单击它来创建标记,允许缩放并允许四处移动。

I tried pyqtlet but I don't familiar with javascript and there is no big community of pyqtet that I can get help from.我尝试了 pyqtlet,但我不熟悉 javascript 并且没有大型的 pyqtet 社区可以帮助我。

Someone has suggestions to implement an interactive map in pyqt5?有人建议在 pyqt5 中实现交互式 map?

I'd suggest creating a map with Folium module, saving it to HTML and then loading that html into PyQt5 widget.我建议使用 Folium 模块创建一个 map,将其保存到 HTML,然后将该 html 加载到 Z8BDB75FF7B8D630ACDZ78 小部件中。 Only thing that might be problematic is creating new markers.唯一可能有问题的是创建新的标记。

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

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