GenoPro Home
GenoPro Home  |  Get Started With My Genealogy Tree  |  Buy  |  Login  |  Privacy  |  Search  |  Site Map
 
Map popup not appearing for individuals and families (fix)


https://support.genopro.com/Topic28583.aspx
Print Topic | Close Window

By HarryCaper - Friday, June 17, 2011
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
By genome - Saturday, June 18, 2011
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.