File: index.rst

package info (click to toggle)
python-pyqtlet2 0.9.3-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,672 kB
  • sloc: python: 997; javascript: 88; makefile: 18; sh: 14
file content (33 lines) | stat: -rw-r--r-- 1,206 bytes parent folder | download
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