Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/moustikitos/tkinter-map
Efficient map viewer for tkinter
https://github.com/moustikitos/tkinter-map
google-maps openstreetmap python tkinter webmap
Last synced: 2 months ago
JSON representation
Efficient map viewer for tkinter
- Host: GitHub
- URL: https://github.com/moustikitos/tkinter-map
- Owner: Moustikitos
- License: mit
- Created: 2023-07-15T16:18:51.000Z (over 1 year ago)
- Default Branch: master
- Last Pushed: 2024-04-07T18:20:11.000Z (9 months ago)
- Last Synced: 2024-11-11T13:08:18.641Z (2 months ago)
- Topics: google-maps, openstreetmap, python, tkinter, webmap
- Language: Python
- Homepage:
- Size: 2.89 MB
- Stars: 3
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Tkmap widget
**Efficient web map canvas for tkinter.**
[![pypi](https://img.shields.io/pypi/l/tkinter-map.svg)](https://github.com/Moustikitos/tkinter-map/blob/master/LICENSE)
## Support this project
[![Liberapay receiving](https://img.shields.io/liberapay/goal/Toons?logo=liberapay)](https://liberapay.com/Toons/donate)
[![Paypal me](https://img.shields.io/badge/PayPal-00457C?logo=paypal&logoColor=white)](https://paypal.me/toons)## Install
### Version 0.1
```bash
python -m pip install tkinter-map
```### Developpment version
```bash
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`](https://sourceforge.net/projects/tkimg/). Binaries can be extracted
in `.tcl` directory at the root of `tkmap` package (ie the one containing the
`__init__.py` module).## Use
```python
>>> 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](https://raw.githubusercontent.com/Moustikitos/tkinter-map/master/img/widget.png)
## Features
- [x] Tile set:
* [x] Google map
* [x] Google satellite
* [x] Open Street map
* [x] Mapbox satellite
- [x] Custom map
- [x] Zoom, pan and fast pan mouse action
- [x] Latitude longitude pixel location
- [x] Tile caching### Ongoing work
- [ ] Location format and projection