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

GenoPro Support Forum




Map popup not appearing for individuals and families (fix)

Click to view RSS...
Author
Posted Friday, June 17, 2011 - Post #28583
Forum Guru

Forum GuruForum GuruForum GuruForum GuruForum GuruForum GuruForum GuruForum GuruForum Guru

FamilyTrees.GenoPro.com
Customers
GenoPro version: 3.1.0.1

Last Login: Thursday, June 2, 2022
Posts: 108, Visits: 1,280
Apologies this bug is entirely on me - I commented one of the necessary changes but was so busy commenting I didn't insert the actual change. doh!

I should have included this modified function in the util.vbs (the critical addition being the inclusion of onclick='showPopUpFrame("""");')


Function StrHtmlImgMap(o)
  If o.Session("gMap") = True Then ' i.e. there are some geo-tagged PLaces for this individual/family
     Dim strAlt
     strAlt=StrDicExt("AltgMap" & o.Class, "", "Display a Google Map showing geo-tagged places associated with this " & Dic(o.Class),"", "2010.12.10")
     StrHtmlImgMap = Util.FormatString(" <a href='gmap.htm?id={},classId={},name={}' target='popup' onclick='showPopUpFrame("""");'><img src='images/pin.gif' class='icon' alt='{&t}' title='{3&t}'/> </a> ", o.ID, o.Class, Replace(Util.UrlEncode(o),"+","%20"), strAlt) 'ShowPopup removed from google map initiation code, to allow map of all people to appear in _detail
  End If
End Function


btw - more than happy for you to drop my monika from the theme names Wink


Edited: Saturday, June 18, 2011 by HarryCaper
Posted Saturday, June 18, 2011 - Post #28584
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: 58 minutes ago
Posts: 3,325, Visits: 25,526
Thanks for that. I had just sat down to look into it further and saw your post.  I had come to the conclusion that something had changed there but tried to tackle it in a different way by adding showPopUpFrame() to the jquery initialisation in gmap.htm. This didn't work with most browsers.  I have pursued this a realised that showPopUpFrame needs a percent argument even if it is a blank string i.e. showPopUpFrame('') (but not null) so I have now changed it to allow null as well so that showPopUpFrame() now works. I'll leave it in gmap.htm as it is tidier than the many 'onclick' attributes.

Will post a skin revision shortly.

btw - more than happy for you to drop my monika from the theme names

O.K. I have already added your moniker to the Author list in Config.xml - the help is much appreciated.


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


Similar Topics

Click to view RSS...
Expand / Collapse

Reading This Topic

Expand / Collapse