Skip to content

Latest commit

 

History

History
59 lines (41 loc) · 1.55 KB

README.md

File metadata and controls

59 lines (41 loc) · 1.55 KB

Tkmap widget

Efficient web map canvas for tkinter.

pypi

Support this project

Liberapay receiving Paypal me

Install

Version 0.1

python -m pip install tkinter-map

Developpment version

python -m pip install git+https://github.com/Moustikitos/tkinter-map.git@master

Requirement

If you plan to use Tkmap widget with map providers sending JPEG-based tiles, it is recommended to install the tcl package tkimg. Binaries can be extracted in .tcl directory at the root of tkmap package (ie the one containing the __init__.py module).

Use

>>> from tkmap import widget, model
>>> canvas = widget.Tkmap()
>>> canvas.pack(fill="both", expand=True)
>>> canvas.open(model.MapModel.load("openstreetmap"), zoom=10, location=(48.645272, 1.841411))

Tkmap widget

Features

  • Tile set:
    • Google map
    • Google satellite
    • Open Street map
    • Mapbox satellite
  • Custom map
  • Zoom, pan and fast pan mouse action
  • Latitude longitude pixel location
  • Tile caching

Ongoing work

  • Location format and projection