react on content without lat/lon
use boolean the right way ;) git-svn-id: http://www.neo1973-germany.de/svn@22 46df4e5c-bc4e-4628-a0fc-830ba316316d
This commit is contained in:
parent
c66496ed74
commit
f8152a3649
1 changed files with 6 additions and 4 deletions
|
@ -196,7 +196,7 @@ class TestView(edje.Edje):
|
||||||
|
|
||||||
self.animate = False
|
self.animate = False
|
||||||
|
|
||||||
self.set_current_tile(49.009051, 8.402481, 10)
|
self.set_current_tile(49.009051, 8.402481, 13)
|
||||||
|
|
||||||
'''
|
'''
|
||||||
self.marker = mark(self.evas_canvas.evas_obj.evas)
|
self.marker = mark(self.evas_canvas.evas_obj.evas)
|
||||||
|
@ -227,9 +227,11 @@ class TestView(edje.Edje):
|
||||||
print 'LocationFeed', e
|
print 'LocationFeed', e
|
||||||
return True
|
return True
|
||||||
def position(self, content):
|
def position(self, content):
|
||||||
print 'position', content['longitude'], content['latitude']
|
longitude = float(content.get('longitude', self.lat))
|
||||||
if self.animate == False:
|
latitude = float(content.get('latitude', self.lon))
|
||||||
self.set_current_tile(float(content['latitude']), float(content['longitude']), self.z)
|
print 'position', longitude, latitude
|
||||||
|
if not self.animate:
|
||||||
|
self.set_current_tile(latitude, longitude, self.z)
|
||||||
|
|
||||||
#jump to coordinates
|
#jump to coordinates
|
||||||
def set_current_tile(self, lat, lon, z):
|
def set_current_tile(self, lat, lon, z):
|
||||||
|
|
Loading…
Reference in a new issue