Skip to main content

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

Usage Example

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

qgmap-1.0.1.tar.gz (45.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

qgmap-1.0.1-py3-none-any.whl (34.3 kB view details)

Uploaded Python 3

File details

Details for the file qgmap-1.0.1.tar.gz.

File metadata

  • Download URL: qgmap-1.0.1.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

Hashes for qgmap-1.0.1.tar.gz
Algorithm Hash digest
SHA256 d9e3cbb6d8cb54fabced9b0f84c624b6202048247878500d50bcdffe55d84ec6
MD5 af71ff3392c5183adc4b640d486fcc6a
BLAKE2b-256 2e0aebe5ee7ff84cce5531858f6b349509fe417db3cd984e82c43a0a0acfe70a

See more details on using hashes here.

File details

Details for the file qgmap-1.0.1-py3-none-any.whl.

File metadata

  • Download URL: qgmap-1.0.1-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

Hashes for qgmap-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 fb7e84bbad25dd9bd5d837321c9a4892237655b6d7db6a6c43b9da608614a1d7
MD5 a765869ff1c1150edeacbc3fda8931bc
BLAKE2b-256 51dde5dd52c221627ac6b3ae7740da5fa2653ca41c7a1a218c7a90e7085dc79c

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page