Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/vokimon/python-qgmap
Qt Google Maps widget for PySide/PyQt4
https://github.com/vokimon/python-qgmap
Last synced: 3 months ago
JSON representation
Qt Google Maps widget for PySide/PyQt4
- Host: GitHub
- URL: https://github.com/vokimon/python-qgmap
- Owner: vokimon
- License: gpl-3.0
- Created: 2014-04-19T14:03:17.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2023-03-29T11:08:06.000Z (almost 2 years ago)
- Last Synced: 2024-10-07T21:01:59.783Z (3 months ago)
- Language: Python
- Homepage:
- Size: 283 KB
- Stars: 25
- Watchers: 8
- Forks: 13
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
python-qgmap
============Qt Google Map widget for PySide/PyQt4
## 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![Usage Example](screenshots/python-qgmap.png)
## Installation
By using pip:
$ pip3 install qgmap
From source:
python3 setup.py --install
## 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 PyQt4
By default the classes use PySide, but the code works for PyQt4 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/