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 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 mapview-1.0.6.tar.gz.
File metadata
- Download URL: mapview-1.0.6.tar.gz
- Upload date:
- Size: 29.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.0 CPython/3.7.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ed70826d7fc49ec51108bfc1b842f7a89c732c262b52d64db6b7dc0f609b0811
|
|
| MD5 |
6ae0abe3979889a54e006bc8d4f85c35
|
|
| BLAKE2b-256 |
00eefa78028747c7c59be362d652202230ece6d920f444c3b3241a90f66a594f
|
File details
Details for the file mapview-1.0.6-py3-none-any.whl.
File metadata
- Download URL: mapview-1.0.6-py3-none-any.whl
- Upload date:
- Size: 32.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.0 CPython/3.7.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6fea7842c48ce8f94687494205bf0383fac8b371b25586abcb67c1c9806f778b
|
|
| MD5 |
559c4e71ccb1c31029c6721999f9254e
|
|
| BLAKE2b-256 |
d55bec4e2930c6e583c1db833665936de68313dfd3bce586f8f6ee348ab31da9
|