A kivy garden mapview demo.
Project description
Mapview
Mapview is a Kivy widget for displaying interactive maps. It has been designed with lot of inspirations of Libchamplain and Leaflet.
The goal of this widget is to be a replacement of Google Maps widget, even if this one works very well, it just works on Android with Kivy. I wanted a map widget that can support custom map, and designed with the latests state-of-the-art Kivy's methods.
Features
- native multitouch (one for translate, many for translate and zoom)
- asynchronous downloading
- avoided GPU limitation / float precisions issues on tiles coordinates
- marker support
- blazing fast!
- supports Z/X/Y providers by default with
MapSource
- supports .mbtiles via
MBTilesMapSource
- supports marker clustering, via
ClusteredMarkerLayer
Requirements
It requires the concurrent.futures
and requests
.
If you use it on Android / iOS, don't forget to add openssl
as a requirements,
otherwise you'll have an issue when importing urllib3
from requests
.
Install
pip install mapview
Usage
This widget can be either used within Python or Kv. That's said, not everything can be done in Kv, to prevent too much computing.
from kivy_garden.mapview import MapView
from kivy.app import App
class MapViewApp(App):
def build(self):
mapview = MapView(zoom=11, lat=50.6394, lon=3.057)
return mapview
MapViewApp().run()
Find out more:
Contributing
Check out our contribution guide and feel free to improve the flower.
License
This software is released under the terms of the MIT License. Please see the LICENSE.txt file.
How to release
See the garden instructions for how to make a new release.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
Built Distribution
File details
Details for the file kivy_garden.mapview-1.0.3-py3-none-any.whl
.
File metadata
- Download URL: kivy_garden.mapview-1.0.3-py3-none-any.whl
- Upload date:
- Size: 26.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.1.3 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/3.7.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 37161a0c6ba846d3fb1c11b6281520c4007ce1fdced894db92b0716dd0b1ed1d |
|
MD5 | a2cbb78c63d8ee4fb49f24d212ec0fbc |
|
BLAKE2b-256 | 884190520ed1637a6575ea476784873f36cfc82a0d57ec87b52d188f1a3169d9 |