Permalink
Browse files

Fixed Gmap zoom bug

  • Loading branch information...
1 parent af13d1b commit 91ba54a32cd1b2faeffb921ea0c823b9549863fc Winton Welsh committed Jun 18, 2008
Showing with 3 additions and 1 deletion.
  1. +3 −1 Gmap.js
View
@@ -101,8 +101,10 @@ var Gmap = new Class({
return marker;
},
remove: function(type, num) {
- if (this.markers[type] && this.markers[type][num])
+ if (this.markers[type] && this.markers[type][num]) {
this.gmap.removeOverlay(this.markers[type][num]);
+ delete this.markers[type][num];
+ }
},
remove_all: function() {
this.marker.each(function(marker, type, num) { this.marker.remove(type, num); }, this);

0 comments on commit 91ba54a

Please sign in to comment.