Pyqtlet2

Latest version: v0.9.3

Safety actively analyzes 685838 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 1 of 2

0.9.1

What's Changed
* Bug fix when Draw is created and Control added to Map by ericj974 in https://github.com/JaWeilBaum/pyqtlet2/pull/49
* Adjusted the event body which is sent from `_onMove` and `_onMoveend` to have the same body structure. Thanks for pointing that out ericj974
New Contributors
* ericj974 made their first contribution in https://github.com/JaWeilBaum/pyqtlet2/pull/49

**Full Changelog**: https://github.com/JaWeilBaum/pyqtlet2/compare/0.9.0...0.9.1

0.9.0

Changes
pyqtlet2 in version `0.9.0` now supports multiple maps in one application!

Closed issues:
- 44

Sample Code:
python
import sys
from PyQt5.QtWidgets import QApplication, QHBoxLayout, QWidget
from pyqtlet2 import L, MapWidget
import pyqtlet2.leaflet.core


class MapWindow(QWidget):
def __init__(self):
Setting up the widgets and layout
super().__init__()
self.mapWidget1 = MapWidget()
self.mapWidget2 = MapWidget()
self.layout = QHBoxLayout()
self.layout.addWidget(self.mapWidget1)
self.layout.addWidget(self.mapWidget2)
self.setLayout(self.layout)

Working with the maps with pyqtlet
self.map1 = L.map(self.mapWidget1)
self.map1.setView([12.97, 77.59], 10)
L.tileLayer('http://{s}.tile.osm.org/{z}/{x}/{y}.png').addTo(self.map1)

self.map2 = L.map(self.mapWidget2)
self.map2.setView([12.97, 77.59], 10)
L.tileLayer('http://{s}.tile.osm.org/{z}/{x}/{y}.png').addTo(self.map2)

self.marker1 = L.marker([12.934056, 77.610029], options={'draggable': True}).addTo(self.map1)
self.marker1.bindPopup('Maps are a treasure.')
self.marker1.moveend.connect(print)

self.marker2 = L.marker([12.934056, 77.610029]).addTo(self.map2)
self.marker2.setDragging(True)
self.marker2.bindPopup('Maps are a treasure.')
self.marker2.moveend.connect(print)

self.show()

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


Download via [PyPi](https://pypi.org/project/pyqtlet2/0.9.0/)

0.8.3

In the realese the version was leaflet version was updated from `1.7.1` to `1.9.3`

0.8.1

Minor changes

0.8.0

What's Changed
* feature: implement qtpy by danielhrisca in https://github.com/JaWeilBaum/pyqtlet2/pull/28

What's New

You can now use QtPy as general interface to work with all kind of python Qt bindings. Have a look into the README.md to findout how to use it.

During the install you can pass the Qt binding framework of your choice

bash
pip3 install "pyqtlet2[PyQt5]"
or
pip3 install "pyqtlet2[PySide6]"


After the install you need to specify the framework to use by an environment variable.

python
import os
os.environ['QT_API'] = 'pyqt5'
from qtpy import QtGui


**Full Changelog**: https://github.com/JaWeilBaum/pyqtlet2/compare/0.7.0...0.8.0

0.7.0

What's Changed
* add PySide6 support by danielhrisca in https://github.com/JaWeilBaum/pyqtlet2/pull/25
* Added `install_requires` to setup.py to install required packages on the fly
* Added `long_description` to setup.py to show description on pypi.org

New Contributors
* danielhrisca made their first contribution in https://github.com/JaWeilBaum/pyqtlet2/pull/25

**Full Changelog**: https://github.com/JaWeilBaum/pyqtlet2/compare/0.6.0...0.7.0

Page 1 of 2

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.