Open main menu

Gramps β

Changes

Integrate google maps with narrative web site

14 bytes added, 08:42, 26 June 2021
no edit summary
{{man note|Possibly obsolete|Worked with Gramps 3.0.x}}
This article explains how to integrate [http://maps.google.com Google maps] with the [[Gramps_3.0_Wiki_Manual_-_Reports#Narrated_Web_Site|Narrative Web Site]] creator in GRAMPS 3.01. See this the samplescreen shot
[[File:Google.maps.screenshot.png|thumb|400px|Google Maps screen shot]].
;1. :Obtain your [https://developers.google.com/maps/faq?csw=1#using-google-maps-apis Google Maps API key]. (This step may require a [http://www.google.com/accounts Google account].) When prompted, enter the URL for where your GRAMPS web page will be stored. Record your key when it is given (it will be a long string of letters and numbers).
;2. :Open the text file /usr/share/gramps/plugins/NarrativeWeb.py (Note: you will need administrative privileges to edit this file.)
;3. :Go to line 1216, and paste in the following block of text:
<code>
</code>
;4. :On the fifth line of code above, replace the **** with your API key from step 1. Save the file, and restart GRAMPS.
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.'''
2,186
edits