move source code to src and define searchbar popup
5
main.kv
|
@ -1,5 +0,0 @@
|
||||||
#:include forestmapview.kv
|
|
||||||
|
|
||||||
ForestMapView:
|
|
||||||
orientation: 'vertical'
|
|
||||||
id: forestmapview
|
|
|
@ -39,7 +39,6 @@ class ForestMapView(MapView):
|
||||||
|
|
||||||
def add_tree(self, tree):
|
def add_tree(self, tree):
|
||||||
# Create TreeMarker
|
# Create TreeMarker
|
||||||
name = tree[0]
|
|
||||||
lat, lon = tree[1], tree[2]
|
lat, lon = tree[1], tree[2]
|
||||||
treemarker = TreeMarker(lat=lat, lon=lon)
|
treemarker = TreeMarker(lat=lat, lon=lon)
|
||||||
treemarker.tree_data = treemarker
|
treemarker.tree_data = treemarker
|
||||||
|
@ -48,5 +47,5 @@ class ForestMapView(MapView):
|
||||||
self.add_widget(treemarker)
|
self.add_widget(treemarker)
|
||||||
|
|
||||||
# Keep track of the TreeMarker's name
|
# Keep track of the TreeMarker's name
|
||||||
|
name = tree[0]
|
||||||
self.tree_names.append(name)
|
self.tree_names.append(name)
|
Before Width: | Height: | Size: 29 KiB After Width: | Height: | Size: 29 KiB |
Before Width: | Height: | Size: 29 KiB After Width: | Height: | Size: 29 KiB |
Before Width: | Height: | Size: 30 KiB After Width: | Height: | Size: 30 KiB |
Before Width: | Height: | Size: 19 KiB After Width: | Height: | Size: 19 KiB |
Before Width: | Height: | Size: 46 KiB After Width: | Height: | Size: 46 KiB |
Before Width: | Height: | Size: 43 KiB After Width: | Height: | Size: 43 KiB |
Before Width: | Height: | Size: 30 KiB After Width: | Height: | Size: 30 KiB |
Before Width: | Height: | Size: 32 KiB After Width: | Height: | Size: 32 KiB |
Before Width: | Height: | Size: 28 KiB After Width: | Height: | Size: 28 KiB |
Before Width: | Height: | Size: 39 KiB After Width: | Height: | Size: 39 KiB |
Before Width: | Height: | Size: 40 KiB After Width: | Height: | Size: 40 KiB |
Before Width: | Height: | Size: 26 KiB After Width: | Height: | Size: 26 KiB |
Before Width: | Height: | Size: 156 B After Width: | Height: | Size: 156 B |