TNG 7 Google maps Add More Place Levels


My genealogy websites use TNG – The Next Generation – and over the years I have come up with a few additions and modifications to enhance my sites. Some of these are available here.

The TNG-WordPress plugin, developed initially by Mark Barnes and for the last several years maintained by Roger Moffat and Darrin Lythgoe can be found here at the WordPress plugins repository.

If you like any of the files available here and they have helped you enhance your TNG site, please feel free to make a small donation.

filesize 119.58 kB
Version 1.1
Date added March 8, 2018
Downloaded 144 times
Category Google maps, TNG 7, TNG Add-ons

This add on, delivered in the form of a “Mod Manager” config file will add 4 more place levels to the sequence of place levels available when geocoding places, AND it changes the layout of the Pin Legend under the Google map on the getperson.php pages from [pin] [=text] [pin] [=text] [pin] [=text] to a row of pins with the text (dynamically) superimposed on the pin. You can see the differences in this image:

TNG Map Pins Modification

To use this you must be using the Mod Manager Add-on for TNG – see

To install this download the .zip file. Unzip it and place the contents (6 files and a folder) into “mod_folder” folder in your TNG/admin folder, then install it from the Mod Manager in TNG Admin.

It will copy the font “LiberationSans-Regular.ttf” to the googlemaps folder, create a file “text_marker.php” in the googlemaps folder, copy 5 new pins to the googlemaps folder, copy 2 files to the admin folder and make some changes to several of the TNG files.

This change is language aware – ie it will write the description on the pin in whatever language people are viewing your site in.

More details, including instructions on how to update your tng_places table to use the extra place levels can be found on the TNG Wiki on this page.

Update: Version 1.1 corrects an issue with the pins drawing correctly on 64 bit servers, and also adds a tweak for the relative positioning of the pin and the text. Thanks to Scotty Darling, Ken Roy and ICDSoft for their help sorting this out.

If you are looking for the TNG 8 version it is here


  105 Responses to “TNG 7 Google maps Add More Place Levels”

  1. Hi Søren

    Do you mean the index.php page, or the overall look of the site in general? If you want the main index.php page to be different, then you need to edit the file index.php that is in the TNG root folder.

    If you’re talking about the look of all the pages, then you can alter that – colours, text etc by editing the file mytngstyle.css that is in the css folder in the TNG root folder.


  2. Hi Roger,

    I’d like to accomplish a look similar to I’ve chosen the suffusion theme but things look nowhere similar, see

    As far as I understand your reply I’ll have to edit the png/index.php file. Is that correct?

    Best regards

  3. Yes – the file tng/index.php is what controls that page. So you can remove things from it – eg the list of menu items on the side, and replace it with other content. Most of what appears on my index.php page is controlled by various scripts that are available to download from my Downloads page – eg the lists of birthdays, anniversaries, etc etc

  4. Hi Roger,

    Thank you. I’ve found your scripts and they’re great. I have to ask – is there any chance you’d be willing to share your index.php file?

    Best regards

  5. Hi Roger,

    I’d like to suggest that you update the code of the wp plugins to support UTF-8, by adding utf8_encode() around variable like names etc, so instead of “$dbrowh[‘lastname’]” you’d write “utf8_encode($dbrowh[‘lastname’])”

    That way output like “Kirsten S�rensdatter” can be displayed like “Kirsten Sørensdatter” etc.

    Best regard

 Leave a Reply

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>



This site uses Akismet to reduce spam. Learn how your comment data is processed.

© 2000 – 2019 Roger’s Ramblings Powered by WordPress Suffusion theme by Sayontan Sinha
%d bloggers like this:

By continuing to use the site, you agree to the use of cookies. more information

The cookie settings on this website are set to "allow cookies" to give you the best browsing experience possible. If you continue to use this website without changing your cookie settings or you click "Accept" below then you are consenting to this.