TomSchimansky / TkinterMapView

A python Tkinter widget to display tile based maps like OpenStreetMap or Google Satellite Images.
Creative Commons Zero v1.0 Universal
596 stars 88 forks source link

Map infinite scrolling through 180 longitude #58

Open MaximFilimonovGH opened 1 year ago

MaximFilimonovGH commented 1 year ago

Hi. Is there any way to make map infinitely scroll through 180 longitude? Also, when polygon crosses 180 longitude, it causes an issue that they are being drawn through the entire map from -180 to 180 longitudes. Thanks!

MaximFilimonovGH commented 1 year ago

To add on this, I am creating an application where a lot of analysis is done in the Pacific Ocean region (passing 180 longitude), so it becomes inconvenient that I need to move to the left and right sides of the map in order to see some of the markers, polygons etc.

One way of resolving this for me would be to set the left and right longitude limits of the tilemap being shown. Currently that is -180 and 180. Is there a way to change that to something custom like -90 to 270?

Thanks in advance!

TomSchimansky commented 1 year ago

I will have a look at this!

pedro2555 commented 1 year ago

I'm dealing with a similar problem with flight routes over the pacific.