Smarty Forum Index Smarty
WARNING: All discussion is moving to https://reddit.com/r/smarty, please go there! This forum will be closing soon.

GoogleMaps API 2.3 hotfix for missing title tooltip

 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Smarty Forum Index -> Add-ons
View previous topic :: View next topic  
Author Message
surfspot_de
Smarty n00b


Joined: 22 Jul 2007
Posts: 1

PostPosted: Sun Jul 22, 2007 6:26 pm    Post subject: GoogleMaps API 2.3 hotfix for missing title tooltip Reply with quote

It has been bugging me a while, so I did a kind of hotfix for the missing title tooltip (wasn´t displayed at all). I changed 2 lines from line no. 1085, and it seems to work Wink

if(!empty($this->_icons)) {
output .= 'var marker = new GMarker(point,{\'title\': title,\'icon\': icon[n]});' . "\n";
} else {
output .= 'var marker = new GMarker(point,{\'title\': title});' . "\n";
}

For checking the result, replace the "_" in my username with a dot Wink

Hope this will be fixed permanently in future versions of the API... just love it!

Cheers, Joerg
Back to top
View user's profile Send private message
nlstart
Smarty Rookie


Joined: 19 Oct 2007
Posts: 8

PostPosted: Tue Oct 23, 2007 1:54 pm    Post subject: Reply with quote

Is there a specific reason why this is not picked up in GoogleMapAPI 2.5 yet?
Back to top
View user's profile Send private message
mohrt
Administrator


Joined: 16 Apr 2003
Posts: 7368
Location: Lincoln Nebraska, USA

PostPosted: Tue Oct 23, 2007 4:36 pm    Post subject: Reply with quote

I'm in the middle of converting CVS to SVN, I'll get some waiting patches in soon.
Back to top
View user's profile Send private message Visit poster's website
nlstart
Smarty Rookie


Joined: 19 Oct 2007
Posts: 8

PostPosted: Mon Nov 05, 2007 7:50 am    Post subject: Reply with quote

I just found out that this 'fix' is fixing the tooltip if one uses
Code:
$map->addMarkerByCoords($lon, $lat, $title, $html);

of course, the full and correct use should be:
Code:
$map->addMarkerByCoords($lon, $lat, $title, $html, $tooltip);

with the unchanged GoogleMapAPI 2.5 this tooltip functionality works fine (to me).
Back to top
View user's profile Send private message
Display posts from previous:   
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Smarty Forum Index -> Add-ons All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group
Protected by Anti-Spam ACP