%name:Ancestor Map-$52% %version:v13.0.0.9% %description: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 Forum entry.

Developer is Réal Charlebois. This mod cfg file was prepared by Bruce Roy and updated for TNG V8 version by Bryan S. Larson.
See revision History section in the TNG Wiki page for change history% %note: INSTALL before TextPlus Charts mod% %wikipage:Ancestor_map% %author:Réal Charlebois% %author:Roger Moffat:https://tng.lythgoes.net/wiki/index.php?title=User:TheKiwi% %author:Ken Roy:https://tng.lythgoes.net/wiki/index.php?title=User:KenRoy% %author:Erik Hoppe:https://tng.lythgoes.net/wiki/index.php?title=User:XerxX% %author:Michel Kirsch:https://tng.lythgoes.net/wiki/index.php?title=User:MichelKirsch% %author:Brent Hemphill:https://tng.lythgoes.net/wiki/index.php?title=User:Bhemph% %author:Robin Richmond:https://tng.lythgoes.net/wiki/index.php?title=User:Robinrichm% %note: TNG 13+. Supports both Google Maps and OpenStreetMap.
Requires other mods if you change placelevels% == Version change history ========== v13.0.0.9_beta14 1 May 2021 - removed LDS BAPL, SGLS, and other LDS events that were not mapped - added option 5 to get_textMsg function v13.0.0.9_beta13 - to consolidate the display of personal events for the person, fathers, and mothers into a function v13.0.0.9_beta12 - to add a two-event-per-person option Birth/Christening & Death/Burial provided by Robin Richmond - to add the new option to get_textMsg function - to add check if user is allowed to display LDS V13.0.0.9_beta11 - cleaned up comments - reduced some indents to 2 spaces and added comments on end of if and while statements for better readability - change French $text['noancestors'] provided by Michel Kirsch - updated English message accordingly to use location instead of places v13.0.0.9_beta10 - to add $debug echo statements triggered by adding &debug=1 to the URL for debugging purposes v13.0.0.9_beta9 provided by Erik Hoppe - to add osmmapsat div to support Map/Satellite switch for OpenStreetMap - to document use of osmapdiv, infodiv, and osmapsat wrapper divs v13.0.0.9_beta8 - fix Swedish language provided by Erik Hoppe - to removed Generation 1 - from header as it is misleading since it never changes v13.0.0.9_beta7 - added fileoptional to languages added in beta6 provided by Michel Kirsch - fixed osmapdiv in mappedigree.php that should have been updated when $map['key'] was changed to use == "OSM" to activate OpenStreetMap instead of clearing the key provided by Ken Roy V13.0.0.9_beta6 updates provided by Ken Roy - to change English message for no events mapped based on the French translation - to add Danish, Dutch, and Swedish cust_text.php using the Deepl translator V13.0.0.9_beta5 updates - to fix French translation by Michel Kirsch - to fix Michel's empty families header provided by Brent Hemphill V13.0.0.9_beta4 updates provided by Brent Hemphill - fix $indexflist and add $indexrlist for marriage event arrays V13.0.0.9_beta3 updates provided by Brent Hemphill - removed the $slinkstyle, $clinkstyle, $blinkstyle from the $innermenu links to other pedigree scripts to not highlight those links v13.0.0.9_beta2 updated by Michel Kirsch - to add a function (get_textMsg() : end of file) to personnalise Ken's message in function of the showview option choosen by user - to fix page header when person has no name (Empty family) v13.0.0.9_beta1 April 2021 updated by Ken Roy - to fix PHP 7 notices that become PHP 8 warnings - to move mappedigree.php to a subfolder to make it easier to fix errors - to use $session_charset instead of $charset - to add $session_charset as global in function setEvent - to add a new message if no events mapped when Ancestor Map used on end of line person v13.0.0.8 26 September updated by Ken Roy to fix fatal error caused by Robin's changes to OpenStreetMap v13.0.0.7 to use OSM in the $map['key'] instead of clearing the key v13.0.0.7 25 August 2020 updated for TNG v13 by Ken Roy and Robin Richmond v12.0.0.6b was updated by Robin Richmond to include inner menu links to the Text+ Ancestor chart and to the Parent Lines chart (mod not published) from the Male and Female Descendant and Parents mod, but only if those mods are installed. v12.0.0.6a 1 Nov 2019 updated by Ken Roy includes PHP constant warning fixes provided by Brent Hemphill v12.0.0.6 21 Aug 2019 Michel Kirsch * to add selection option to show only birth/deaths/marriages infos on the map. The map is more readable to follow origins of the current person. * To add Edit Option whether to begin generations with 0 or 1 for current person * to Replace each() function - code initially provided by Michel Kirsch to fix code in getperson.php * to add Czech, German, and Spanish translations by Ron Krzmarzick, and packaging by Ken Roy V12.0.0.5 30 Jun 2019 Ken Roy updated to fix several syntax errors on PHP 7.2 v12.0.0.4 10 Jun 2019 Erik Hoppe and Ken Roy updated to support Google and OpenStreetMap v12.0.0.3 1 May 2018 Ken Roy update for TNG v12 See TNG WIki page for revision history ============= $current_person_generation Parameter added by MichelK========== %target:mappedigree.php% %fileoptional:% Determines whether generation is numbered relative to 0 or 1 for the current person %parameter:$current_person_generation:1% %desc:
La première génération peut être 0 ou 1 suivant votre vision des choses.

The first generation can be 0 or 1 depending on your point of view.
default: (1)
% ================= End parameters ================= %target:pedigree.php% Location 1 - line 31 %location:% $pdfform_url = getURL( "rpt_pdfform", 1 ); %end:% %insert:after% //added for ancestors map created by Réal Charlebois $mappedigree_url = getURL( "mappedigree", 1 ); %end:% Location 2 - line 494 %location:% if($generations <= 6 && $allowpdf) $innermenu .= "    |    PDF\n"; %end:% %insert:before% //added for ancestors map created by Réal Charlebois $innermenu .= "   |    {$text['ancestorsmap']}\n"; %end:% %target:pedigreetext.php% Location 1 - line 18 %location:% $pdfform_url = getURL( "rpt_pdfform", 1 ); %end:% %insert:after% //added for ancestors map created by Réal Charlebois $mappedigree_url = getURL( "mappedigree", 1 ); %end:% Location 2 - line 302 %location:% if($generations <= 6 && $allowpdf) $innermenu .= "    |    PDF\n"; %end:% %insert:before% //added for ancestors map created by Réal Charlebois $innermenu .= "   |   {$text['ancestorsmap']}\n"; %end:% %target:fan.php% Location 1 - line 174 %location:% $vertical_url = getURL( "verticalchart", 1 ); $fan_url = getURL( "fan", 1 ); %end:% %insert:after% //added for ancestors map created by Réal Charlebois $mappedigree_url = getURL( "mappedigree", 1 ); %end:% Location 2 - line 195 %location:% $allowpdf = !$treerow['disallowpdf'] || ($allow_pdf && $rightbranch); if($generations <= 6 && $allowpdf) $innermenu .= "    |    PDF\n"; %end:% %insert:after% //added for ancestors map created by Réal Charlebois $innermenu .= "   |   {$text['ancestorsmap']}\n"; %end:% %target:verticalchart.php% Location 1 - line 13 %location:% $pdfform_url = getURL( "rpt_pdfform", 1 ); %end:% %insert:after% //added for ancestors map created by Réal Charlebois $mappedigree_url = getURL( "mappedigree", 1 ); %end:% Location 2 - line 75 %location:% if($generations <= 6 && $allowpdf) $innermenu .= "    |    PDF\n"; %end:% %insert:before% //added for ancestors map created by Réal Charlebois $innermenu .= "   |   {$text['ancestorsmap']}\n"; %end:% %target:ahnentafel.php% Location 1 - line 17 %location:% $pdfform_url = getURL( "rpt_pdfform", 1 ); %end:% %insert:after% //added for ancestors map created by Réal Charlebois $mappedigree_url = getURL( "mappedigree", 1 ); %end:% Location 2 - line 105 %location:% if($generations <= 6 && $allowpdf) $innermenu .= "    |    PDF\n"; %end:% %insert:before% //added for ancestors map created by Réal Charlebois $innermenu .= "   |   {$text['ancestorsmap']}\n"; %end:% %target:extrastree.php% Location 1 - line 12 %location:% $pdfform_url = getURL( "rpt_pdfform", 1 ); %end:% %insert:after% //added for ancestors map created by Réal Charlebois $mappedigree_url = getURL( "mappedigree", 1 ); %end:% Location 2 - line 169 %location:% if($generations <= 6 && $allowpdf) $innermenu .= "    |    PDF\n"; %end:% %insert:before% //added for ancestors map created by Réal Charlebois $innermenu .= "   |   {$text['ancestorsmap']}\n"; %end:% ============ Language files ============== %target:languages/English/cust_text.php% %location:% //Mods should put their changes before this line, local changes should come after it. %end:% %insert:before% // added for Ancestor Map mod $text['ancestorsmap'] = "Map"; $text['showoption'] = "Show  "; $text['show_all'] = "All"; $text['birth_bapt'] = "Births-Baptisms"; $text['only_bapt'] = "Baptisms"; $text['only_birth'] = "Births"; $text['death_burial'] = "Deaths-Burials"; $text['only_death'] = "Deaths"; $text['only_burial'] = "Burials"; $text['only_marr'] = "Marriages"; $text['birth_death'] = "Births-Deaths"; $text['noeventsmapped'] = "No events were mapped with the [Show] option = "; $text['noancestors'] = "No ancestor events contain geocoded locations or no ancestors exist for this person."; // end of additions for Ancestor Map mod %end:% %target:languages/English-UTF8/cust_text.php% %location:% //Mods should put their changes before this line, local changes should come after it. %end:% %insert:before% // added for Ancestor Map mod $text['ancestorsmap'] = "Map"; $text['showoption'] = "Show  "; $text['show_all'] = "All"; $text['birth_bapt'] = "Births-Baptisms"; $text['only_bapt'] = "Baptisms"; $text['only_birth'] = "Births"; $text['death_burial'] = "Deaths-Burials"; $text['only_death'] = "Deaths"; $text['only_burial'] = "Burials"; $text['only_marr'] = "Marriages"; $text['birth_death'] = "Births-Deaths"; $text['noeventsmapped'] = "No events were mapped with the [Show] option = "; $text['noancestors'] = "No ancestor events contain geocoded locations or no ancestors exist for this person."; // end of additions for Ancestor Map mod %end:% %target:languages/French/cust_text.php% %fileoptional:% %location:% //Mods should put their changes before this line, local changes should come after it. %end:% %insert:before% // added for Ancestor Map mod $text['ancestorsmap'] = "Carte"; $text['showoption'] = "Afficher  "; $text['show_all'] = "Tout"; $text['birth_bapt'] = "Naissances-Baptêmes"; $text['only_bapt'] = "Baptêmes"; $text['only_birth'] = "Naissances"; $text['death_burial'] = "Décès-Sépultures"; $text['only_death'] = "Décès"; $text['only_burial'] = "Sépultures"; $text['only_marr'] = "Mariages"; $text['birth_death'] = "Naissances-Décès"; $text['noeventsmapped'] = "Aucun événement n'a été cartographié avec l'option [Afficher] = "; $text['noancestors'] = "Aucun événement d'ancêtre ne contient de lieux géocodés ou aucun ancêtre n'existe pour cette personne."; // end of additions for Ancestor Map mod %end:% %target:languages/French-UTF8/cust_text.php% %fileoptional:% %location:% //Mods should put their changes before this line, local changes should come after it. %end:% %insert:before% // added for Ancestor Map mod $text['ancestorsmap'] = "Carte"; $text['showoption'] = "Afficher  "; $text['show_all'] = "Tout"; $text['birth_bapt'] = "Naissances-Baptêmes"; $text['only_bapt'] = "Baptêmes"; $text['only_birth'] = "Naissances"; $text['death_burial'] = "Décès-Sépultures"; $text['only_death'] = "Décès"; $text['only_burial'] = "Sépultures"; $text['only_marr'] = "Mariages"; $text['birth_death'] = "Naissances-Décès"; $text['noeventsmapped'] = "Aucun événement n'a été cartographié avec l'option [Afficher] = "; $text['noancestors'] = "Aucun événement d'ancêtre ne contient de lieux géocodés ou aucun ancêtre n'existe pour cette personne."; // end of additions for Ancestor Map mod %end:% %target:languages/Czech-UTF8/cust_text.php% %fileoptional:% %location:% //Mods should put their changes before this line, local changes should come after it. %end:% %insert:before% // added for Ancestor Map mod $text['ancestorsmap'] = "Map"; $text['showoption'] = "Ukázat  "; $text['show_all'] = "Všechny"; $text['only_marr'] = "Manželství"; $text['birth_bapt'] = "Narození-Křest"; $text['only_bapt'] = "Křty"; $text['only_birth'] = "Narození"; $text['death_burial'] = "Smrti-Pohřbít"; $text['only_death'] = "Úmrtí"; $text['only_burial'] = "Pohřbení"; $text['birth_death'] = "Narození-Úmrtí"; $text['noeventsmapped'] = "Žádné události nebyly mapovány pomocí možnosti [Zobrazit] = "; $text['noancestors'] = "Žádné události předků neobsahují geokódovaná místa nebo pro tuto osobu neexistují žádní předci."; // end of additions for Ancestor Map mod %end:% %target:languages/Danish-UTF8/cust_text.php% %fileoptional:% %location:% //Mods should put their changes before this line, local changes should come after it. %end:% %insert:before% // added for Ancestor Map mod $text['ancestorsmap'] = "Kort"; $text['showoption'] = "Vis  "; $text['show_all'] = "Alle"; $text['birth_bapt'] = "Fødsler-Dåb"; $text['only_bapt'] = "Dåb"; $text['only_birth'] = "Fødsler"; $text['death_burial'] = "Dødsfald-Begravelser"; $text['only_death'] = "Dødsfald"; $text['only_burial'] = "Begravelser"; $text['only_marr'] = "Ægteskaber"; $text['birth_death'] = "Fødsler-Dødsfald"; $text['noeventsmapped'] = "Der blev ikke kortlagt nogen hændelser med indstillingen [Vis] = "; $text['noancestors'] = "Ingen forfædrebegivenheder indeholder geokodede steder, eller der findes ingen forfædre for denne person."; // end of additions for Ancestor Map mod %end:% %target:languages/Dutch-UTF8/cust_text.php% %fileoptional:% %location:% //Mods should put their changes before this line, local changes should come after it. %end:% %insert:before% // added for Ancestor Map mod $text['ancestorsmap'] = "Kaart"; $text['showoption'] = "Toon  "; $text['show_all'] = "Alle"; $text['birth_bapt'] = "Geboorten-Doopfeesten"; $text['only_bapt'] = "Doopfeesten"; $text['only_birth'] = "Geboorten"; $text['death_burial'] = "Overleden-Begrafenissen"; $text['only_death'] = "Overleden"; $text['only_burial'] = "Begrafenissen"; $text['only_marr'] = "Huwelijken"; $text['birth_death'] = "Geboorten-Overleden"; $text['noeventsmapped'] = "Er zijn geen gebeurtenissen in kaart gebracht met de optie [Toon] = "; $text['noancestors'] = "Geen vooroudergebeurtenissen bevatten geocodeerde plaatsen of er bestaan geen voorouders voor deze persoon."; // end of additions for Ancestor Map mod %end:% %target:languages/German-UTF8/cust_text.php% %fileoptional:% %location:% //Mods should put their changes before this line, local changes should come after it. %end:% %insert:before% // added for Ancestor Map mod $text['ancestorsmap'] = "Map"; $text['showoption'] = "Zeigen  "; $text['show_all'] = "Ganz"; $text['only_marr'] = "Ehen"; $text['birth_bapt'] = "Geburtstaufe"; $text['only_bapt'] = "Taufen"; $text['only_birth'] = "Narození"; $text['death_burial'] = "Tod-Begräbnis"; $text['only_death'] = "Todesfälle"; $text['only_burial'] = "Bestattungen"; $text['birth_death'] = "Narození-Todesfälle"; $text['noeventsmapped'] = "Mit der Option [Anzeigen] wurden keine Ereignisse abgebildet = "; $text['noancestors'] = "Keine Vorfahren-Ereignisse enthalten geocodierte Orte oder es existieren keine Vorfahren für diese Person."; // end of additions for Ancestor Map mod %end:% %target:languages/Spanish-UTF8/cust_text.php% %fileoptional:% %location:% //Mods should put their changes before this line, local changes should come after it. %end:% %insert:before% // added for Ancestor Map mod $text['ancestorsmap'] = "Map"; $text['showoption'] = "Mostrar  "; $text['show_all'] = "Todo"; $text['only_marr'] = "Matrimonios"; $text['birth_bapt'] = "Nacimiento-Bautismo"; $text['only_bapt'] = "Bautismos"; $text['only_birth'] = "Nacimientos"; $text['death_burial'] = "Muerte-Entierro"; $text['only_death'] = "Muertes"; $text['only_burial'] = "Entierros"; $text['birth_death'] = "Nacimientos-Muertes"; $text['noeventsmapped'] = "No se han asignado eventos con la opción [Mostrar] = "; $text['noancestors'] = "Ningún evento de ancestros contiene lugares geocodificados o no existen ancestros para esta persona."; // end of additions for Ancestor Map mod %end:% %target:languages/Swedish-UTF8/cust_text.php% %fileoptional:% %location:% //Mods should put their changes before this line, local changes should come after it. %end:% %insert:before% // added for Ancestor Map mod $text['ancestorsmap'] = "Karta"; $text['showoption'] = "Visa  "; $text['show_all'] = "Alla"; $text['birth_bapt'] = "Födslar-Dop"; $text['only_bapt'] = "Dop"; $text['only_birth'] = "Födslar"; $text['death_burial'] = "Dödsfall-Begravningar"; $text['only_death'] = "Dödsfall"; $text['only_burial'] = "Begravningar"; $text['only_marr'] = "Vigslar"; $text['birth_death'] = "Födslar-Dödsfall"; $text['noeventsmapped'] = "Inga händelser har kartlagts med alternativet [Visa] = "; $text['noancestors'] = "Inga händelser för förfäder innehåller geokodade platser eller inga förfäder finns för den här personen."; // end of additions for Ancestor Map mod %end:% %target:css/genstyle.css% %location:% /* Classes for TNG Mods to be added below */ %end:% %insert:after% /* added by Ancestor Map mod for use with mappedigree file */ .mapballoonpedigree { width:360px; } %end:% %copyfile:ancestormap_v13009/mappedigree.php%