In .:
2006-12-06 Alex Roitman <shura@gramps-project.org> * src/Makefile.am (gdir_PYTHON): Ship new file. 2006-12-06 Benny Malengier <bm@cage.UGent.be> * src/PlaceUtils.py: Add new file. * src/DataViews/_PlaceView.py (google): Use new module. In po: 2006-12-06 Alex Roitman <shura@gramps-project.org> * POTFILES.in: List new file. svn: r7765
This commit is contained in:
@@ -136,6 +136,7 @@ class PlaceView(PageView.ListView):
|
||||
|
||||
def google(self, obj):
|
||||
import GrampsDisplay
|
||||
from PlaceUtils import conv_lat_lon
|
||||
|
||||
try:
|
||||
place_handle = self.selected_handles()[0]
|
||||
@@ -145,6 +146,7 @@ class PlaceView(PageView.ListView):
|
||||
descr = place.get_title()
|
||||
longitude = place.get_longitude()
|
||||
latitude = place.get_latitude()
|
||||
latitude,longitude = conv_lat_lon(latitude,longitude,"D.D8")
|
||||
|
||||
if longitude and latitude:
|
||||
path = "http://maps.google.com/?sll=%s,%s&z=15" % (latitude,longitude)
|
||||
|
||||
Reference in New Issue
Block a user