New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

tkintermapview

Package Overview
Dependencies
Maintainers
1
Versions
34
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

tkintermapview - pypi Package Compare versions

Comparing version
1.20
to
1.21
+1
-1
PKG-INFO
Metadata-Version: 2.1
Name: tkintermapview
Version: 1.20
Version: 1.21
Summary: A python Tkinter widget to display image tile maps like OpenStreetMap or Satellite Images.

@@ -5,0 +5,0 @@ Home-page: https://github.com/TomSchimansky/TkinterMapView

@@ -43,2 +43,3 @@ ![PyPI](https://img.shields.io/pypi/v/tkintermapview)

- [Set position with marker](#set-position-with-marker)
- [Set position and zoom to fit bounding box](#set-position-and-zoom-to-fit-bounding-box)
- [Create position markers](#create-position-markers)

@@ -119,2 +120,8 @@ - [Create path from position list](#create-path-from-position-list)

---
### Set position and zoom to fit bounding box
If you have two decimal coordinates (<lat1>, <long1>) and (<lat2>, <long2>), that define a box, so that the first coordinate is the top-left corner and the second coordinate is the bottom-right corner. Then you can use the `fit_bounding_box` method of the map widget to fit this box into the map widget:
```python
map_widget.fit_bounding_box((<lat1>, <long1>), (<lat2>, <long2>))
```
---
### Create position markers

@@ -121,0 +128,0 @@

@@ -12,3 +12,3 @@ from setuptools import setup

setup(name="tkintermapview",
version="1.20",
version="1.21",
author="Tom Schimansky",

@@ -15,0 +15,0 @@ license="Creative Commons Zero v1.0 Universal",

Metadata-Version: 2.1
Name: tkintermapview
Version: 1.20
Version: 1.21
Summary: A python Tkinter widget to display image tile maps like OpenStreetMap or Satellite Images.

@@ -5,0 +5,0 @@ Home-page: https://github.com/TomSchimansky/TkinterMapView

@@ -1,2 +0,2 @@

__version__ = "1.20"
__version__ = "1.21"

@@ -3,0 +3,0 @@ from .map_widget import TkinterMapView

@@ -260,2 +260,6 @@ import requests

def fit_bounding_box(self, position_top_left: Tuple[float, float], position_bottom_right: Tuple[float, float]):
# wait 200ms till method is called, because dimensions have to update first
self.after(100, self._fit_bounding_box, position_top_left, position_bottom_right)
def _fit_bounding_box(self, position_top_left: Tuple[float, float], position_bottom_right: Tuple[float, float]):
""" Fit the map to contain a bounding box with the maximum zoom level possible. """

@@ -262,0 +266,0 @@