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 are on python 2.7,
you can use futures
:
pip install futures 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()
More extensive documentation will come soon.
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 Distribution
Built Distribution
Hashes for kivy_garden.mapview-1.0.2.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | efebc8a1838db7031b7cc11bc04472b4c97a68e1ac747da0a7bc5220c0a12ab8 |
|
MD5 | ee1e76bee0c5156c70aabc26ef73d493 |
|
BLAKE2b-256 | 0186def579d9a442fccb6036b924049eb6729c6c0223b8b5801ee125f76f695d |
Hashes for kivy_garden.mapview-1.0.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a5fb5a21ed193aee06181a96c1103ad4f799e16e84627fd0de4876b55652703c |
|
MD5 | aa5f9e93ccdefd05d8b121e1060a390a |
|
BLAKE2b-256 | 2b8774141248180e408e7eb5f5e99565e2cccc6eeb8654fbec2f72c9915705bf |