Changes

Jump to: navigation, search

Integrate google maps with narrative web site

660 bytes added, 20:32, 3 November 2009
no edit summary
From now on, when you generate web pages with GRAMPS, on each "Places" page there will be a Google Map. '''Note: this only works for places for which you have entered the latitude and longitude.'''
 
==Alternative code==
 
if place.lat and place.long:
of.write('\t\t\t<tr>\n')
of.write('\t\t\t\t<td class="ColumnAttribute">%s</td>\n' % _('Maps'))
of.write('\t\t\t\t<td class="ColumnValue">')
of.write('\t\t\t\t\thttp://maps.google.com/maps?geocode=&q=%s+%s&ie=UTF8&ll=%s,%s&z=11\n'
% (place.lat, place.long, place.lat, place.long))
of.write('\t\t\t\t\thttp://wikimapia.org/#lat=%s&lon=%s&z=11&l=0&m=a&v=2\n'
% (place.lat, place.long,))
of.write('\t\t\t\t\thttp://www.openstreetmap.com/?lat=%s&lon=%s&zoom=11&layers=B00FF\n'
% (place.lat, place.long,))
of.write('\t\t\t\t</td>')
of.write('\t\t\t</tr>\n')

Navigation menu