GenoPro Home
GenoPro Home  |  Get Started With My Genealogy Tree  |  Buy  |  Login  |  Privacy  |  Search  |  Site Map
 

GenoPro Support Forum




Replacement of Google Maps in the Narrative Report

Click to view RSS...
Author a switch to open source mapping using Leaflet with OpenStreetMap & Stamen.com map tiles
Posted Thursday, December 10, 2020 - Post #40986
Legendary Master

Legendary MasterLegendary MasterLegendary MasterLegendary MasterLegendary MasterLegendary MasterLegendary MasterLegendary MasterLegendary Master

Administrators
Customers
Important Contributors
FamilyTrees.GenoPro.com
GenoPro version: 3.1.0.1

Last Login: 5 hours ago
Posts: 3,323, Visits: 25,490
I have become increasing annoyed with the way Google changed its policy a few years back regarding the use of the Google Maps javascript API, forcing anyone who wanted to use it in their projects to give Google their credit card details first, even if their usage was below their free limit.  The Google Cloud platform and Developer's Console were not for the fainted-hearted or in-experienced with the site being a confusing minefield.  It was also difficult to mitigate the risk of unexpected charges from Google by protecting your API key from misuse and to limit usage.

I for one have therefore decided to delete my Google Cloud & API project account to remove this uncertainty from my life.

Over the past week I have been looking into alternatives and can now announce a replacement using the popular LeafletJs javascript library using OpenStreetMap tiles and also two sets of tiles from Stamen. You can choose the initial layer used from these three but the others can be displayed instead via a layer control in the top right corner of the map.

I have attached a zipped Common folder and to try it I suggest you rename your existing Common folder to allow reversion and download and unzip the attached into your GenoPro Report templates folder.

Example images. 

OpenStreetMap

http://support.genopro.com/Uploads/Images/4d8de3a0-fd9f-458b-bce9-9d35.jpg


OpenStreetMap with Stamen 'Terrain' tiles.

http://support.genopro.com/Uploads/Images/056d5a55-9580-45ca-bd93-f8b6.jpg


OpenStreetMap with Stamen WaterColor and Toner-Labels

http://support.genopro.com/Uploads/Images/698b22c4-5099-4edc-9c80-59d0.jpg


'lego audio video erro ergo disco' or "I read, I listen, I watch, I make mistakes, therefore I learn"


Common2020.12.11.zip (96 views, 2.41 MB)
Posted Friday, December 11, 2020 - Post #40988
Famous Writer

Famous WriterFamous WriterFamous WriterFamous WriterFamous WriterFamous WriterFamous WriterFamous WriterFamous Writer

Customers
FamilyTrees.GenoPro.com
GenoPro version: 3.1.0.1

Last Login: Friday, March 15, 2024
Posts: 251, Visits: 1,658
Awesome!!!  Thank you so much Genome!!! w00t
Posted Saturday, February 6, 2021 - Post #41147
Forum Writer

Forum WriterForum WriterForum WriterForum WriterForum WriterForum WriterForum WriterForum WriterForum Writer

Customers
FamilyTrees.GenoPro.com
GenoPro version: 3.1.0.1

Last Login: Monday, March 11, 2024
Posts: 55, Visits: 1,359

Hallo Ron,

ich habe leider ein paar Probleme mit OpenStreetMap.

OpenStreetMap öffnet Karten immer im Terrain Modus ohne eine Karte zu zeigen. Wie kann man Roads als Voreinstellung einstellen?

In der Personenansicht kann man über den Kartenschalter eine Karte öffnen.

Von einem Text-Hyperlink und aus der Orte-Seite geht dies nicht.

Das Fenster zum umschalten auf Roade-Terrain-Watercolor-Places öffnet sich nicht.


http://support.genopro.com/Uploads/Images/4e464f30-a8e4-41a1-b155-002a.jpg

http://support.genopro.com/Uploads/Images/44d91f0c-6bb5-4ee4-a489-f283.jpg

http://support.genopro.com/Uploads/Images/bc755efa-c546-4be3-9792-d8d7.jpg

http://support.genopro.com/Uploads/Images/08c8d789-9ec3-4fe4-89e2-1493.jpg

Posted Sunday, February 7, 2021 - Post #41148
Legendary Master

Legendary MasterLegendary MasterLegendary MasterLegendary MasterLegendary MasterLegendary MasterLegendary MasterLegendary MasterLegendary Master

Administrators
Customers
Important Contributors
FamilyTrees.GenoPro.com
GenoPro version: 3.1.0.1

Last Login: 5 hours ago
Posts: 3,323, Visits: 25,490
Hi Albert,

Thanks for testing the new OpenStreetMap for the Narrative Report.

I have found a bug in my script which prevented the layer control button working on the place and individual maps.  I will release revised Report Skin Templates shortly and these will include updated ConfigMsgLocal.xml and Dictionary.xml files for all languages to cater for the substitution of OpenStreetMap/LeafletJs in place of Google Maps.

I have found that the initial zoom setting is too high at 7 and a value of 4 gives better results so I have now made this the default.  This improves the initial terrain view. 

The initial layer type to be displayed is defined in ConfigMsgLocal.xml and can be changed via the Configuration Parameters dialogue as can initial zoom level.

Google translate:

Vielen Dank, dass Sie die neue OpenStreetMap für den Erzählbericht getestet haben.

Ich habe einen Fehler in meinem Skript gefunden, der verhindert hat, dass die Ebenensteuerungsschaltfläche für den Ort und einzelne Karten funktioniert. Ich werde in Kürze überarbeitete Berichts-Skin-Vorlagen veröffentlichen, die aktualisierte ConfigMsgLocal.xml- und Dictionary.xml-Dateien für alle Sprachen enthalten, um die Ersetzung von OpenStreetMap / LeafletJs anstelle von Google Maps zu ermöglichen.

Ich habe festgestellt, dass die anfängliche Zoomeinstellung bei 7 zu hoch ist und ein Wert von 4 bessere Ergebnisse liefert. Daher habe ich dies jetzt zur Standardeinstellung gemacht. Dies verbessert die anfängliche Geländeansicht.

Der anzuzeigende anfängliche Ebenentyp ist in ConfigMsgLocal.xml definiert und kann ebenso wie die anfängliche Zoomstufe über den Dialog Konfigurationsparameter geändert werden.


'lego audio video erro ergo disco' or "I read, I listen, I watch, I make mistakes, therefore I learn"
Posted Sunday, February 7, 2021 - Post #41152
Forum Writer

Forum WriterForum WriterForum WriterForum WriterForum WriterForum WriterForum WriterForum WriterForum Writer

Customers
FamilyTrees.GenoPro.com
GenoPro version: 3.1.0.1

Last Login: Monday, March 11, 2024
Posts: 55, Visits: 1,359
sorry, hätte ich auch wissen können!Blush
Posted Monday, February 8, 2021 - Post #41160
Legendary Master

Legendary MasterLegendary MasterLegendary MasterLegendary MasterLegendary MasterLegendary MasterLegendary MasterLegendary MasterLegendary Master

Administrators
Customers
Important Contributors
FamilyTrees.GenoPro.com
GenoPro version: 3.1.0.1

Last Login: 5 hours ago
Posts: 3,323, Visits: 25,490
This error has now been fixed see 

Updates to Report Skin Templates since GenoPro 2020 version 3.1.0.1


'lego audio video erro ergo disco' or "I read, I listen, I watch, I make mistakes, therefore I learn"
Posted Wednesday, February 10, 2021 - Post #41169
Famous Writer

Famous WriterFamous WriterFamous WriterFamous WriterFamous WriterFamous WriterFamous WriterFamous WriterFamous Writer

Customers
FamilyTrees.GenoPro.com
GenoPro version: 3.1.0.1

Last Login: Friday, March 15, 2024
Posts: 251, Visits: 1,658
I just downloaded the latest skins, and I still do not see anything when Terrain or Watercolors are selected.  Roads work fine.

Edited: Wednesday, February 10, 2021 by NiKo
Posted Wednesday, February 10, 2021 - Post #41172
Legendary Master

Legendary MasterLegendary MasterLegendary MasterLegendary MasterLegendary MasterLegendary MasterLegendary MasterLegendary MasterLegendary Master

Administrators
Customers
Important Contributors
FamilyTrees.GenoPro.com
GenoPro version: 3.1.0.1

Last Login: 5 hours ago
Posts: 3,323, Visits: 25,490
Works fine in my neck of the woods (South of England).  May be map tiles are incomplete for some locations.  Any chance of a sample published to familytrees.genopro.com?  or some lat/lang values?


'lego audio video erro ergo disco' or "I read, I listen, I watch, I make mistakes, therefore I learn"
Posted Wednesday, February 10, 2021 - Post #41173
Forum Writer

Forum WriterForum WriterForum WriterForum WriterForum WriterForum WriterForum WriterForum WriterForum Writer

Customers
FamilyTrees.GenoPro.com
GenoPro version: 3.1.0.1

Last Login: Monday, March 11, 2024
Posts: 55, Visits: 1,359
Dies ist ein Problem von Google Chrome.

Ich habe meinen freien Stammbaum mit drei Browsern geöffnet:

1. Google Chrome-Browser

http://support.genopro.com/Uploads/Images/84ef3ca6-ef8b-4f01-acf5-eed1.jpg

2. Firefox-Browser

http://support.genopro.com/Uploads/Images/b298ece0-4681-41b3-bec3-5ccc.jpg

3. Opera-Browser

http://support.genopro.com/Uploads/Images/f09672f7-59a8-4f22-bc6b-192c.jpg
Posted Wednesday, February 10, 2021 - Post #41175
Legendary Master

Legendary MasterLegendary MasterLegendary MasterLegendary MasterLegendary MasterLegendary MasterLegendary MasterLegendary MasterLegendary Master

Administrators
Customers
Important Contributors
FamilyTrees.GenoPro.com
GenoPro version: 3.1.0.1

Last Login: 5 hours ago
Posts: 3,323, Visits: 25,490
Thanks Albert, your post gave me the clue to the problem.  My testing was all on local files but using your web report I could see in the Chrome Developers Console some mismatch between https and http for Stamen map tiles.  I needed to use different Stamen servers.

Amendments to Common\Code\gmap_places.js & Common\Code\gmap_places.htm seem to fix this. see attached


'lego audio video erro ergo disco' or "I read, I listen, I watch, I make mistakes, therefore I learn"


gmap_places.js (54 views, 7.86 KB)
gmap_places.htm (41 views, 3.94 KB)


Similar Topics

Click to view RSS...
Expand / Collapse

Reading This Topic

Expand / Collapse