Skip to main content

A kivy garden mapview demo.

Project description

Mapview

Github Build Status Build Status

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.

ScreenShot

Marker clustering

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

kivy_garden.mapview-1.0.1.tar.gz (25.2 kB view details)

Uploaded Source

Built Distribution

kivy_garden.mapview-1.0.1-py3-none-any.whl (27.7 kB view details)

Uploaded Python 3

File details

Details for the file kivy_garden.mapview-1.0.1.tar.gz.

File metadata

  • Download URL: kivy_garden.mapview-1.0.1.tar.gz
  • Upload date:
  • Size: 25.2 kB
  • Tags: Source
  • 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.8.2

File hashes

Hashes for kivy_garden.mapview-1.0.1.tar.gz
Algorithm Hash digest
SHA256 7b83bffe935a1aa873a1cc6491d31c2319224dd33719d50a06741cf281af98df
MD5 836b757233af312b7b6400ca16944c16
BLAKE2b-256 3c2d87b584c2a1802384f174d37fbe31b52b47af9b0c579f0ac19e3b054a866d

See more details on using hashes here.

File details

Details for the file kivy_garden.mapview-1.0.1-py3-none-any.whl.

File metadata

  • Download URL: kivy_garden.mapview-1.0.1-py3-none-any.whl
  • Upload date:
  • Size: 27.7 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.8.2

File hashes

Hashes for kivy_garden.mapview-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 1f375c1c869866c1c5f7ca0a1c558516191e97c688cef48e1150f6199bfd56e0
MD5 b9d375cd1c98651025dd9d84ab693a4b
BLAKE2b-256 a7490487bf11947d4b7faaf4f9dd67e9e51d0c94aa72cabf42edd4986af8e476

See more details on using hashes here.

Supported by

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