Interactive map widget for PySyde/PyQt4
Project description
python-qgmap
Qt Google Map widget for PySide/PyQt6
Features:
- Specify locations either by latitude, longitude pairs or street addresses by means of GeoCoding
- Programatically centering, zooming and manipulate markers
- Flexible marker properties (ie. draggable, icon, title...)
- Emits signals on user actions: dragged markers, pans or zooms
- Easy to extend, thanks to the painless python-qt-javascript interface
Installation
By using pip:
$ pip3 install qgmap
Usage
Two main classes are provided:
- qgmap.GeoCoder: Retrieves geo-coordinates (latitude, longitude) from street addresses
- qgmap.QGoogleMap: A WebView widget containing a GoogleMap, with some convenience accessors to manage center, zoom, markers...
See the main example code at qgmap-example.py
Using it with PyQt6
By default the classes use PySide, but the code works for PyQt6 if you set to False the usePySide module variable by hand.
Any suggestion to make this less hacky is welcome.
Acknoledgements
This Python code has been inspired in Henrik Hartz's C++ example code:
https://blog.qt.digia.com/blog/2008/07/03/putting-qtwebkit-to-use-with-google-maps/
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file qgmap-1.1.0.tar.gz.
File metadata
- Download URL: qgmap-1.1.0.tar.gz
- Upload date:
- Size: 45.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.9.20
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
45efbca2344e1a876ad243f1272732445f773c298663b7996344189f11262eb5
|
|
| MD5 |
b0fc5c1288b28f751d9524cc9e8833b7
|
|
| BLAKE2b-256 |
3a535687c08c24092a251f1f477e005365d6657420a73fab59d21d53de7883e2
|
File details
Details for the file qgmap-1.1.0-py3-none-any.whl.
File metadata
- Download URL: qgmap-1.1.0-py3-none-any.whl
- Upload date:
- Size: 34.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.9.20
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a93005d6b4de48d20c25366d34d323c3a22f0d2cd135f31887accf34a38217cc
|
|
| MD5 |
b403dcf69a66a696512365c16759ca89
|
|
| BLAKE2b-256 |
a00fa536f2d12b0e3b48b81f3d958584cbaf1a96977efed4e74000d7479d4544
|