More cleanup.

This commit is contained in:
FrozenCow 2011-01-12 02:03:31 +01:00
parent d634aede92
commit c4cce7182a
2 changed files with 44 additions and 44 deletions

View file

@ -71,6 +71,15 @@ CustomMarker.prototype.show = function() {
}
}
CustomMarker.prototype.toggle = function(t) {
if (typeof t == "boolean") {
if (t) this.show();
else this.hide();
} else {
this.toggle(this.isHidden == true);
}
}
CustomMarker.prototype.remove = function() {
// Check if the overlay was on the map and needs to be removed.
if (this.div_) {