1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33
|
Pyqtlet
=======
pyqtlet brings `Leaflet <https://leafletjs.com/>`_ maps to `PyQt5 <http://pyqt.sourceforge.net/Docs/PyQt5/introduction.html>`_ or PySide6.
`Leaflet <https://leafletjs.com/>`_ is the most popular mapping library on the web. It has most mapping features that you might need, excellent documentation, and a host of plugins. In contstruction and design, pyqtlet attempts to mimic the `official Leaflet API <http://leafletjs.com/reference-1.3.0.html>`_ as much as possible.
pyqtlet allows you to bring in these leaflet maps into PyQt5 or PySide6 in just a couple of lines. It provides a mapWidget (which is a QWidget) as well as a namespace (L) in order to mimic the Leaflet API.
.. code-block:: python
from pyqtlet import L, MapWidget
class Application(QMainWindow):
...
self.mapWidget = MapWidget()
self.map = L.map(self.mapWidget)
self.map.setView([12.97, 77.59], 10)
...
self.layout.add(self.mapWidget)
If you have are just starting out, you might want to start off with the :doc:`getting-started` page.
.. toctree::
:hidden:
getting-started
api-docs
examples
tutorials
technical
contributing
|