Permalink
Browse files

More eborhood production fixes

  • Loading branch information...
1 parent 91ba54a commit d35de61f47fbab4f48db56be78211da24ae3c8da Winton Welsh committed Jun 18, 2008
Showing with 2 additions and 1 deletion.
  1. +2 −1 Gmap.js
View
@@ -134,7 +134,7 @@ var Gmap = new Class({
tooltip: function(on, type, num, form, template) {
var tooltip = $('map_tooltip_' + type + '_' + num);
if (on) {
- var marker_offset = this.gmap.fromLatLngToContainerPixel(this.markers[type][num].getLatLng());
+ var marker_offset = this.gmap.fromLatLngToContainerPixel(this.markers[type.replace('shout_', '')][num].getLatLng());
var map_offset = this.container.getPosition();
var offset = { x: marker_offset.x + map_offset.x, y: marker_offset.y + map_offset.y };
if (!tooltip) {
@@ -147,6 +147,7 @@ var Gmap = new Class({
tooltip.fadeIn();
} else
tooltip.fadeOut();
+ return tooltip.id;
}
}
});

0 comments on commit d35de61

Please sign in to comment.