Ancestor map

From TNG_Wiki
Jump to navigation Jump to search


Ambox notice.png The latest version of this mod uses the guidelines for TNG v12+ cust_text.php files. If you are using TNGv12+, and any cust_text.php file in this mod is marked with a Bad Target error, you need to update your cust_text.php files before you can install this mod. [Show instructions]

If you upgraded to TNGv12+, and did not update your cust_text.php files as instructed in the upgrade readme script, then you must use the TNG Mod Manager to update them. To do so:

  1. Go to Mod Manager, and select its "Recommended Updates" tab.
    (If the "Recommended Updates" tab is not visible, then go to the Mod Manager Options tab, select "Display Settings", and turn on the "Recommended Updates" tab.)
  2. Click the "Update" button in the "Recommended Updates" tab.
    Installed mods do not interfere with the update, and if you already have (or think you may have) run this update, it will not hurt for you to run it again.

[See details in the TNGv12 Change Impacts Article][Hide the instructions]

TNG 14.0
TNG 13.0
TNG 12.0


Restricted Downloads of Ancestor map are restricted to logged in users. If you do not have a user account on the TNG Wiki use the Request Account link to request a user account Restricted
Caution If you have trouble downloading with Google Chrome, Vivaldi, Brave or other Chromium based browser, try using a right-click and select Open in new Window, then F5, or use another browser such as Firefox Caution
Ancestor Map
Summary Shows a Google map of birth places of the individual's ancestors.
Validation Latest mod is XHTML compliant.Valid-xhtml10.png
Mod Updated 31 Jan 2024
Download link for
TNG 14.0
ancestor_map_1_add_map_v14.0.0.11.zip
for
TNG 13.0
ancestor_map_1_add_map_v13.0.0.9a.zip
to override baptisms in show selection ancestor_map_2_overrides_v13.0.0.9.zip
for
TNG 12.0

ancestors map 1 add map v12.0.0.6a.zip
[Show older versions]

Download stats View download statistics
Author(s) Réal Charlebois
TNG v8 updated by Bryan S. Larson
TNG V8.1.2, V9, V10, V10.1 updated by Roger Moffat
V11 updated by Ken Roy
V12 updated by Erik Hoppe and Ken Roy
Homepage Ancestor map (This page)
Mod Support TNG Community Forums
Contact Developer
Latest Mod 14.0.0.11 for TNG 14.x
13.0.0.9a for TNG 13.x, TNG 14.x
12.0.0.6a for TNG 12+
11.0.2.3 for TNG 11.0.2
11.0.0.1 for TNG 11.0
10.1.0.2 for TNG 10.1
10.0.0.1 for TNG 10
9.0.0.1 for TNG 9.0
8.1.2 for TNG 8.1.2
8.1.1 for other versions of TNG 8
Min TNG V 8.0.0
Max TNG V 14+
Files modified
pedigree.php
pedigreetext.php
ahnentafel.php
extrastree.php
fan.php
cust_text.php
mappedigree.php (new file)
Related Mods
Notes
If using multiple languages, please add the custom text for your other languages

Purpose of the Mod

This mod was developed from a discussion on Adding a map to Ancestry for an individual, Putting all ancestors for an individual on a google map in this TNG Community Forum entry It will add a new link to the Ancestors tab on a getperson.php page that shows a map with all of the places (that have been geocoded) for that person's ancestors.
Supplemental mods
If you have installed one of the Google Map mods that adds Placelevels, you should download and install one of the supplemental mods shown here.

Caution DO NOT install the supplemental mods unless you are also running the mod that is a prerequisite Caution


TNG version: 13.0.0


TNG version: 12.0.0

Developers

This mod was developed by Developer is Réal Charlebois See Adding a map to Ancestry for an individual on the TNG Community Forums

TNG8 version by Bryan S. Larson

Config file for TNG V8.1.2 updated by Roger Moffat to work correctly, and have the variables quoted.

Mod was updated for TNG V9 by Roger Moffat to follow the Living and Private access rules as well as quoted variables from the TNG 8 Revision and tweaks for validation.

Mod was updated for TNG V10 by Roger Moffat to handle changes in innermenu caused by the addition of the Vertical Ancestor Chart to TNG. Version 10.0.0.1 includes fixes to the Privacy logic provided by Martin Pannier.

Mod was updated for TNG V10.1 by Roger Moffat to handle change from mysql_ queries to tng_ queries in TNG 10.1.

Mod was updated for TNG V12 by Ken Roy and Erik Hoppe to support both Google Maps and the OpenStreetMap mod

V12.0.0.6 was updated by Michel Kirsch to allow selection of events and to add an Edit option to display Generation numbers relative to 0 or to 1.

Known Issues

For the maps to work you must have geo-coded locations in your tree!

Geo-coded locations must use decimals and NOT commas for values. Commas used in geocodes will result in javascript variable errors that prevent the maps from displaying

To see the list of issues fixed in TNG V9 [Expand] the link on the right. You can then click [Collapse] to hide the section.
TNG version: 8.1.0
Other issues:
  • mappedigree.php is still coded in TNG V7 style without the quoted variables used in TNG V8 (fixed in v12.0.0.5 and later)
  • pins in Event table are not numbered
  • pins in Event table are shown with a border (See sites using the mod for visualization of these last 2 issues)
  • currently does not support the Google_Maps_-_More_Place_Levels_Mod
The ancestors_map_placelevel_v8.1.0.zip file can be installed on top of the Ancestor Map mod to address the previous 3 issues shown above. Note that if you don't have the Google_Maps_-_More_Place_Levels_Mod installed, you should rework the ancestors_map_placelevel config file and only use location 2 to fix the other two issues.


TNG version: 8.1.2

The above issues have been fixed in the Ancestors_map_v8.1.3.cfg.zip file linked above


TNG version: 9.0

The above issues have been fixed in TNG V9.

Requirements

  • a working TNG installation with Mod Manager
  • Geo-coded locations
  • Latitude and longitude values must use decimals

Visualizations

V13.0.0.9

Ancestor Map v13.0.0.9
Google Maps
Google Maps changes
OpenStreetMap
OpenStreetMap changes
Alt Birth and Burial
Alternate birth and death events used
No Events Mapped
No Events Mapped
V13.0.0.9 Enhancements The following changes were made in v13.0.0.9:
  • new Births-Deaths option was added to the Show pull down selection to map both births and deaths
  • new message was added to show why no map was returned
  • LDS BAPL and SLGS event mapping was removed
  • new mod Ancestor Map -2 Overrides for English language only to changes the Show pull down selection from Baptisms to Christenings. If you already override your $text variables in English to use Baptism instead of Christening, you should not install this new mod.

Prior to v13.0.0.9

1. The Ancestor Map
Ancestor map after1.jpg
2. The bottom of the scrolling event list.

The event list is sorted by generation, using the typical father-first pedigree sorting, and then by event type: Birth, Christening, LDS Baptism, Death, Burial, Marriage, Divorce, LDS Marriage Sealing. Since multiple events may use the same location pin, the pin numbers at the bottom of the list may not be the highest pin numbers

Ancestor map after2.jpg

Revision History

Mod Version Date Note
14.0.0.11 31 Jan 2024 Updated to fix PHP 8 warning if map is called without passing personID and treeID. Will result in a blank page in some browsers. 404 Error Mod can be used to eliminate the resulting blank page if the browser does not generate its own 404 error page.
14.0.0.10a 25 Apr 2023 Updated to correct German text variables and add Hungarian language variables provided by Ingrid
14.0.0.10 2 Feb 2023 Updated to fix issue with $tngconfig['tabs'] being deleted by TNG once you make any changes to General Settings.
13.0.0.9a 21 Jan 2023 Updated the German-UTF8 text to remove the intermixed Czech text. Our thanks to Ingrid for surfacing the issue. Mod is the same as v13.0.0.9 if you do not use German on your site
13.0.0.9 2 May 2021 Updated by
  • Ken Roy with our thanks to Brent Hemphill for his help to eliminate PHP 7 notices / PHP 8 warnings
  • Ken Roy with our thanks to Michel Kirsch for his help to show the option used for ancestor mapping and to indicate no events were mapped when invoked for person who has no ancestors or the locations are not geocoded
  • Ken Roy with our thanks to Erik Hoppe for his help in fixing the div ids for OpenStreetMap to allow switching between map and satellite view caused by the change to require OSM in the map key to activate the OpenStreetMap
  • Ken Roy to use $session_charset for maps when calling Google Maps
  • Ken Roy to remove OR die from $query so TNG can return the actual error encountered
  • Ken Roy with our thanks to Robin Richmond for the new option to select Birth AND Deaths and for creating a new function to display the mapped events
  • Ken Roy to add debug echo capability to make it easier to isolate problems with our thanks to Robin Richmond for consolidating the debug echo statements into a
13.0.0.9 2 May 2021 New mod Ancestor Map -2 Overrides added by Ken Roy to override Baptisms to Christenings in the Show selection pull down list in the English language only if you are not overriding CHR to Baptisms. Baptisms and Christenings use the same word in other languages.
13.0.0.8 26 Sep 2020 Updated by
13.0.0.7 25 Aug 2020 Updated by Ken Roy and Robin Richmond to include inner menu links
  • to the Text+ Ancestor chart and
  • to the Parent Lines chart from the Male and Female Descendant and Parents mod, but only if those mods are installed.
12.0.0.6a 1 Nov 2019 Updated by
12.0.0.6 23 Aug 2019 Updated by
  • Michel Kirsch to add selection options to show birth, death, and marriage,
  • and the Edit option that now allows the users to display generations relative to the individual being in generation 0 or 1
  • Ron Krzmarzick to add Czech, German, and Spanish language custom text
  • Ken Roy to replace the PHP 7.2 deprecated each() function. Code initially provided by Michel for getperson.php
12.0.0.5 30 Jun 2019 Updated to fix several syntax errors on PHP 7.2.6 Version supports both Google Maps and OpenStreetMap
Updated add-on mods to work with the Ancestor Map v12.0.0.5 version posted on 27 Jun 2018
12.0.0.4 10 Jun 2018 Updated by Erik Hoppe for TNG v12 to support both Google Maps and OpenStreetMap
12.0.0.3 1 May 2018 Updated for TNG v12 to use the %note to show PreReqs of associated mods. No other code changes
11.0.2.3 23 Sep 2016 Updated for TNG v11.0.2 to fix innermenu links and support https
11.0.2.2 9 Sep 2016 Updated for TNG v11.0.2 and fixed link to Fan Chart page
11.0.0.1 Sep 2016 Fixed link to Fan Chart page
11.0.0.0 16 Apr 2016 Added link to Ancestors Map on TNG v11 Fan Chart page, and tidied up the placement of the Map link in the TNG innermenu so that it's the same on all the TNG pages, and comes before the PDF tab.
10.1.0.2 14 Oct 2015 Fix for extended characters under ISO-8859-1 noted by Erik.
10.1.0.1 25 Feb 2015 Minor fixes for http/https switching in the links generated.
10.1.0.0 11 Jan 2015 Updated for compatibility with TNG 10.1.
10.0.0.1 9 May 2014 Fixes for Privacy Logic provided by Martin Pannier.
10.0.0.0 12 Feb 2014 Updated for compatibility with TNG 10.0.0.
9.0.0.6 23 Apr 2012 Minor bug fix.
Another attempt at fixing issue where sometimes "%A0" would display in a place name.
9.0.0.5 23 Apr 2012 Minor bug fix.
Corrected an issue where the map would not show if you had set your site to NOT assign a tree to places.
9.0.0.4 21 Apr 2012 Minor Update.
Added PDF link to be able to create a PDF Pedigree chart from this page - NOTE: It's not a PDF of the map page, but just the regular PDF as created from other pages.
9.0.0.3 13 Apr 2012 Minor bug fix.
  • Corrected issue where people with certain prefixes in their names like "von" or "de" were being displayed with "%A0" in the name in the balloon on the map and in the table to the right of the map, instead of a space after the prefix.
  • Corrected an issue that stopped the map displaying if there was an apostrophe in a person's name.
9.0.0.2 21 Mar 2012 Minor bug fix.
Corrected issue where Map would not show if the TNG Admin setting for Miscellaneous ------> "Individuals start with:" was set to "Personal information only" preventing the map from showing at all.
9.0.0.1 8 Mar 2012 Minor bug fix.
Language Mods added for Dutch, French and Spanish. They work for all versions though!
9.0.0.0 2 Feb 2012 Updated by Roger Moffat for TNG 9.0.0. This update suppresses ancestors that are marked Living and / or Private if the user is not allowed to view Living and / or Private for that Branch of the Tree
8.1.3 20 Jan 2012 Updated by Roger Moffat for TNG 8.1.2
8.1.2 27 Apr 2011 Updated by Roger Moffat for TNG 8.1.2
8.1.1 5 Aug 2010 Updated by Ken Roy to create mappedigree.php in the config file and include $text for English-UTF8. Updated mappedigree.php to obtain mapconfig.php using the $subroot variable
8.1.0 27 Jun 2010 original TNG V8 config file release by Bryan S. Larson

Automated Installation Requirements

  1. Remove previously installed version
  2. Download the appropriate zip file from the Mod Summary in the upper right hand corner
  3. Unzip the downloaded zip file to your mods folder in TNG V8 and above
  4. Follow the normal automated installation for Mod Manager, as shown in the example Mod Manager - Installing Config Files to install the ancestors_map_.cfg
  5. Delete previous version

If you have other Goggle Map mods installed, you may need to install additional fixes to the Ancestor Map mod

Custom Text Additions

Note that config file only includes the English language changes, so if you support multiple languages you will need add these lines to each of your language cust_text.php files with appropriate translations of course.

// added for use with mappedigree file
$text['ancestorsmap'] = "Map";

For example, you would add to the French/cust_text.php

// added for use with mappedigree file
$text['ancestorsmap'] = "Carte";

Or you can use the language mods in the summary in the upper right corner of this page to add Dutch, French or Spanish custom text additions. Procedure: download, unzip to TNG mods folder, install using Mod Manager. Note that these language mods work for all versions!

Side effects

  1. As with most source code modifications, these changes will likely be overwritten during your next TNG revision upgrade and will need to be re-implemented. (Using the Mod Manager greatly simplifies this process.

In the event of a problem


Sites using this mod

If you download and install this mod,please add your TNG site to the table below:

URL User Note Mod-Version TNG-Version User-language
Our Roy and Boucher Family Ken Roy Currently support the mod 14.0.0.11
TNG 14.0.5
EN,FR
Charlebois family genealogical Réal Charlebois Mod Developer 8.1.1 8.0.0 EN
Treichel-Familie.de Andreas Treichel Public & Private 14​.0​.0​.11
TNG 14.0.6
DE,EN,FR,ES,PL
Family tree of Marcin & Emilia Senderski Marcin Senderski Only home page is public 13.0.0.9 13.0.4 EN,PL
A Line of Malkins in NZ Rick Malkin Private 14.0.0.10 14.0.2 EN
Roger's Ramblings Roger Moffat Public/Private 14.0.0.11
TNG 14.0.4
EN
Our Family History Paul D Garrett Public/Private 12.0.0.5 12.0 EN
Families all over the World Hans Weebers Public/Private 10.1.0.2 11.0.0.0 NL,DE,EN,FR
MyFOOTDEEAncestors Mrs Montgomery 10.0.0.0 10.0.02 EN
German Family-site Oname.gif (no public site) see at Oname.gif DE,NL,EN
Nanney Family History Majdan 12.0.0.5 12.0.1 EN
den Heuvel Marco van den Heuvel ... 9.0.0.6 9.0.3 NL,EN
Nordic Ancestry Mogens C. Fenger (not a public site) 9.0.0.6 9.1.1 DA,EN
Van der Maarel Genealogy Edward van der Maarel 12.0.0.5 12.0.2 EN,NL
Jerry Milo Johnson Ancestry Project Jerry Milo Johnson 9.0.0.6 9.0.2 EN
Whittlesey-Whittelsey Family History Willis S Whittlesey III Public site 9.0.0.6 9.2.0 EN
Grogan mob Margaret Turner Public site 10.1.0.1 10.1.1 EN
Turner mob Margaret Turner Public site 10.1.0.1 10.1.1 EN
MOTYER Family Genealogy John Mark Motyer Public site See here See here EN
Steve's Family Tree Steve Overton Private site 10.0.0.0 10.0.0 EN
Hooley Family Links Rick Hooley Public/Private See Here See Here EN
Moss Family Tree Chris Moss 10.0.0.1 10.0.3 EN
Wortelboer Genealogy Bernard Wortelboer Public site 11.0.0.0 11.0.0 NL,EN
Robin's Genealogy Database Robin Richmond Public site 10.0.0.1 10.0.3 EN
De Zoethouten van Woudsend John Zoethout Public site 10.1.0.0 10.1.0 NL,EN
Familie van Seeventer Sandor van Seeventer Public site 14.0.0.11
TNG 14.0.5
EN,DE,NL
Brady Family Tree in Western Australia Darryl Brady Public site 11.0.0.1 11.0.1 EN,DE
Andersson - Hoppe - Sahlin - Thorell Erik Hoppe Mod-ed mod (priv page) 10.1.0.1 11.1.2 SV,EN,DE
Quigley Doyle Family Tree Don Quigley Public Site 10.1.0.2 11.0.0 EN
Our Family History Jean Pichette Public Site 10.1.0.2 11.0.0 EN,FR
Roots & Relatives Remembered Ron Krzmarzick Public & Private See here See here EN,DE,CS
OurLife Family History - McMullen Clan Sean Thompson 11.0.2.3 11.1.0 EN
SiEiNo's slekt på Internett Eilif A Nordseth Not a public site 11.0.2.3 11.1.0 NO
http://www.danskeaner.dk Michael Hedeman 11.0.2.3 11.1.0 DA
Auf den Spuren meiner Vorfahren Uwe Haase Not a public site 11.0.2.3 11.1.0 DE
localhost site only Hazel Foster Not a public site 11.0.2.3 11.1.0 EN
Patricia Lee Hobbs Family History Patricia Hobbs Not a public site 11.0.2.3 11.1.0 EN
Ortsfamilienbuch für Kematen in Tirol Walter Dase Not a public site 11.0.2.3 11.1.1 EN
Schuster-Pippersteiner Ingrid Schuster public 11.0.2.3 12.0.2 DE,CZ,EN,HU
Racine d'Alsace J-Louis Valory Public/Private - T17 customized 12.0.0.5 12.0.2 FR
Genealogy of the Weir and Drain Families Beverley Stimpson Public Site 11.0.2.3 11.1.2 EN
The Cole / Tanner Family Tree David Cole Public/Private see here see here EN,DE,FR,ES,NL
Our Family Tree Ken Spratlin Public/Private,Template 12 13.0.0.9 13.1.2 EN
Martius Family Hendrik Martius Half public 12.0.0.5 12.0.2 DE,EN,FR,NL
Bartelds/Kratzer Genealogy Jos Bartelds Half public 12.0.0.5 12.0.2 DE,EN,NL
Journeys in Genealogy Patrick Thrush Public WordPress/TNG bundle 12.0.0.5 12.0.3 EN
Skeel,Schaffalitzky og Ahlefeldt Finn Holbek Public Site 14.0.0.11 14.0.4 DA,EN,DE,SW,NO
Our Family Histories Bryan S. Larson Public - T8 customized see here see here EN
Barta-Joggele Online aus Mauren,Liechtenstein Gerald Meier Private 12.0.0.6 12.2 DE,EN,FR,ES,PT
Racines Luxo-hennuyères Michel Kirsch Public site (registration) 13.0.0.8 13.0.3 FR,EN,DE,NL
The Severijns / Timmer Familytree Rob Severijns Public / Private See here See here NL,EN
Bastiaanssen Genealogy Jan Bastiaanssen Public / Private 14.0.0.11
TNG 14.0.5
NL,EN,ES
Lathrope Family Genealogy S Sharpe Public 13.0.0.9 13.0.4 EN
Joseph Oran Holtz Genealogy Pages Jim Holt Private See Here See Here EN
Huygens - Van de Moortel Tom Huygens Public/Private on WordPress 13.0.0.9 13.1.2 NL
Les Lapierre d'Amérique Normand Lapierre Public/Private site 13.0.3.9a 14.0 FR,EN
Vår familjehistoria Lars Arén Public 13.0.0.9a 14.0 SE,EN,DE
GénéaKat Katryne Chauvigné-Bourlaud Public & Private 14.0.0.10a 14.0.3 FR,EN
Solem Genealogy Jan-Thore Solem Private 14.0.0.10a 14.0.2 EN,NO
Van Peer Project Drew McClenaghan Private 14.0.0.10a 14.0 EN
Stammbaum der Familie Datschetzky Christian Datschetzky Public 14.0.0.10a 14.0.3 DE,EN