|
Smarty
WARNING: All discussion is moving to https://reddit.com/r/smarty, please go there! This forum will be closing soon. |
|
View previous topic :: View next topic |
Author |
Message |
surfspot_de Smarty n00b
Joined: 22 Jul 2007 Posts: 1
|
Posted: Sun Jul 22, 2007 6:26 pm Post subject: GoogleMaps API 2.3 hotfix for missing title tooltip |
|
|
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
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
Hope this will be fixed permanently in future versions of the API... just love it!
Cheers, Joerg |
|
Back to top |
|
nlstart Smarty Rookie
Joined: 19 Oct 2007 Posts: 8
|
Posted: Tue Oct 23, 2007 1:54 pm Post subject: |
|
|
Is there a specific reason why this is not picked up in GoogleMapAPI 2.5 yet? |
|
Back to top |
|
mohrt Administrator
Joined: 16 Apr 2003 Posts: 7368 Location: Lincoln Nebraska, USA
|
Posted: Tue Oct 23, 2007 4:36 pm Post subject: |
|
|
I'm in the middle of converting CVS to SVN, I'll get some waiting patches in soon. |
|
Back to top |
|
nlstart Smarty Rookie
Joined: 19 Oct 2007 Posts: 8
|
Posted: Mon Nov 05, 2007 7:50 am Post subject: |
|
|
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 |
|
|
|
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
|