tkintermapview
Advanced tools
+1
-1
| 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 |
+7
-0
@@ -43,2 +43,3 @@  | ||
| - [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 @@ |
+1
-1
@@ -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 @@ |
Alert delta unavailable
Currently unable to show alert delta for PyPI packages.
107732
0.76%1451
0.21%