kivy-garden / mapview

Mapview is a Kivy widget for displaying interactive maps.
https://kivy-garden.github.io/mapview/
MIT License
88 stars 29 forks source link

Importing the mapview overrides window size and positioning. #23

Open Jeremy-Doneghue opened 5 years ago

Jeremy-Doneghue commented 5 years ago

I am setting my application's window size and positioning with Config.set('graphics', 'width', 1024) etc, however importing MapView from kivy.garden.mapview causes the window to open at what looks like 800x600 in the center of the screen. Removing the import returns the window to the correct sizing behaviour.

I've had a look through the source, but can't find whatever might be causing this problem. Operating system is MacOS 10.14, python2.7

ghost commented 5 years ago

Hi Jeremy,

I had the same problem too - the only way I could get it to work was by setting the 'Config' prior to importing kivy.garden.mapview (or any other module which uses mapview).

Hope that helps.