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

GenoPro Support Forum




Google Maps Zoom Levels

Click to view RSS...
Author Error in passed parameters from Place Index - Zoom level NULL passed
Ian
Posted Sunday, April 29, 2007 - Post #17572
Junior Member

Junior MemberJunior MemberJunior MemberJunior MemberJunior MemberJunior MemberJunior MemberJunior MemberJunior Member

Customers
GenoPro version: 3.1.0.1

Last Login: Today @ 12:50 AM
Posts: 18, Visits: 4,291
The parameters passed to Google differ between Individual and Place Index Reports.

hyperlink generated by Individual Report:-

<a href='checkGoogleMap("53.840028", "-1.700347", "Apperley Lane,Yorkshire,England", 1, 16,document.location,false);'>Display Google Map of this location (if available)</a>

Hyperlink generated by Place Index Report:-
<a href='checkGoogleMap("53.840028", "-1.700347", "Apperley Lane,Yorkshire,England", 16,"",false);'>Display Google Map of this location (if available)</a>

The zoom has been set at 16 and works except for Place Index which returns the world 3 times!

Ian

Posted Sunday, April 29, 2007 - Post #17575
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: 9 hours ago
Posts: 3,412, Visits: 26,367
Welcome to the forum Ian and thanks for reporting this. I wonder if anyone else has spotted it.

The place index link is missing the 'Map Type' parameter that I introduced in the last version. I'll add a fix to the next release but for now it can be corrected in a custom skin by changing line 1301 of Lang.vbs as follows

from
   Report.WriteFormattedLn "<a href='checkGoogleMap(""{&j}"", ""{&j}"", ""{&j}"", {},"""",false);'>{&t}</a>",p.Latitude, p.Longitude, strPlace, strZoom, Dic("gMapLink")
to
   strType=CustomTag(p, "Map.Google.Type")
   if strType = "" Then strType = g_strGoogleMapsType
   Report.WriteFormattedLn "<a href='checkGoogleMap(""{&j}"", ""{&j}"", ""{&j}"", {}, {},"""",false);'>{&t}</a>",p.Latitude, p.Longitude, strPlace, strType, strZoom, Dic("gMapLink")



'lego audio video erro ergo disco' or "I read, I listen, I watch, I make mistakes, therefore I learn"
Ian
Posted Sunday, April 29, 2007 - Post #17576
Junior Member

Junior MemberJunior MemberJunior MemberJunior MemberJunior MemberJunior MemberJunior MemberJunior MemberJunior Member

Customers
GenoPro version: 3.1.0.1

Last Login: Today @ 12:50 AM
Posts: 18, Visits: 4,291
Thanks Ron - now works perfectly. Thought I was going senile as sometimes my custom tag, changing the default zoom, worked and othertime I got the world 3 times.

Ian

Posted Friday, June 22, 2007 - Post #18145
Grand Master

Grand MasterGrand MasterGrand MasterGrand MasterGrand MasterGrand MasterGrand MasterGrand MasterGrand Master

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

Last Login: Yesterday @ 11:38 PM
Posts: 1,584, Visits: 31,821
Another variation on zoom problems. When the map is first opened, zooming keeps the point of interest in the centre. If you enlarge the area, eg click on full size, then zooming moves the point off centre and you have to keep moving it back to the centre (unless you have managed to get it centred exactly).

Is this a Google Maps problem?
Posted Wednesday, June 27, 2007 - Post #18218
Grand Master

Grand MasterGrand MasterGrand MasterGrand MasterGrand MasterGrand MasterGrand MasterGrand MasterGrand Master

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

Last Login: Yesterday @ 11:38 PM
Posts: 1,584, Visits: 31,821
This zoom problem (shift of centre of interest) still occurs in latest 2.0.0.6 with Firefox
Posted Wednesday, June 27, 2007 - Post #18224
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: 9 hours ago
Posts: 3,412, Visits: 26,367
Sorry appleshaw, I seems to have missed your original post on this issue. I think I have managed to fix the problem by grabbing the centre point before the resize of the frame and then resetting the centre afterwards. The attached script.js file can be used in a custom skin to apply this fix. Should work with either 2.0.0.5 or 2.0.0.6 as script.js did not change.


'lego audio video erro ergo disco' or "I read, I listen, I watch, I make mistakes, therefore I learn"
Posted Wednesday, June 27, 2007 - Post #18227
Grand Master

Grand MasterGrand MasterGrand MasterGrand MasterGrand MasterGrand MasterGrand MasterGrand MasterGrand Master

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

Last Login: Yesterday @ 11:38 PM
Posts: 1,584, Visits: 31,821
Thanks Ron. Fixed it
Posted Friday, June 29, 2007 - Post #18279
Legendary Master

Legendary MasterLegendary MasterLegendary MasterLegendary MasterLegendary MasterLegendary MasterLegendary MasterLegendary MasterLegendary Master

Administrators
Moderators
Customers
Gamma
FamilyTrees.GenoPro.com
Translator
GenoPro version: 3.1.0.1

Last Login: Thursday, January 16, 2025
Posts: 4,886, Visits: 22,775


Similar Topics

Click to view RSS...
Expand / Collapse

Reading This Topic

Expand / Collapse
Active: 2 - 1 guest, 0 members, 0 anonymous.
Refresh
No members currently viewing this topic!