Skip to main content

Bringing leaflet maps to PyQt

Project description

# pyqtlet

pyqtlet is a wrapper for Leaflet maps in PyQt5. In construction and design, it mimics the [official leaflet api]( as much as possible.

pyqtlet is currently in v0.3.0. To get started, visit the [Getting Started page](

Further details about implementation, API docs etc can also be found on the [pyqtlet site](

## Installation

``` bash
pip3 install PyQt5
pip3 install pyqtlet

``` bash
# To test whether it is successfully working
>>> from pyqtlet import L, MapWidget
>>> # No errors

## Usage

``` python
import sys
from PyQt5.QtWidgets import QApplication, QVBoxLayout, QWidget
from pyqtlet import L, MapWidget

class MapWindow(QWidget):
def __init__(self):
# Setting up the widgets and layout
self.mapWidget = MapWidget()
self.layout = QVBoxLayout()

# Working with the maps with pyqtlet =[12.97, 77.59], 10)
self.marker = L.marker([12.934056, 77.610029])
self.marker.bindPopup('Maps are a treasure.')

if __name__ == '__main__':
app = QApplication(sys.argv)
widget = MapWindow()

## Contributing
In terms of contributing, there is a lot of work that still needs to be done.
For further details, visit the [contributing page](

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Filename, size & hash SHA256 hash help File type Python version Upload date
pyqtlet-0.3.2.tar.gz (444.9 kB) Copy SHA256 hash SHA256 Source None

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page