Skip to content

Commit

Permalink
Merge pull request #47 from macdems/develop
Browse files Browse the repository at this point in the history
Fix #44 (missing markers in Kivy 2.0.0)
  • Loading branch information
tshirtman authored Jul 24, 2021
2 parents a7cdb79 + 6461c16 commit 997e128
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -121,3 +121,6 @@ dmypy.json

# Pyre type checker
.pyre/

# MapView cache
/cache
4 changes: 4 additions & 0 deletions kivy_garden/mapview/view.py
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,10 @@ class MapMarker(ButtonBehavior, Image):
# (internal) reference to its layer
_layer = None

def __init__(self, **kwargs):
super(MapMarker, self).__init__(**kwargs)
self.texture_update()

def detach(self):
if self._layer:
self._layer.remove_widget(self)
Expand Down

0 comments on commit 997e128

Please sign in to comment.