The Family Is Growing! | Cruising World

The Family Is Growing!

Ok, aside from a glitch we are working on as I write this, I'm feeling like a proud father. EdsBoatTips is growing! For those of you who are regulars, you'll notice some changes on the site today. First, as promised a week or so ago, we've added Pacer Wire and Cable as a sponsor to the site. They have provided some really useful links for boaters who need tools, wire and cable when doing some of their own wiring. Please check them out. They wouldn't be on the site if I didn't think they ...

File www.cruisingworld.com

Elabel

function ELabel(point, html, classname, pixelOffset, percentOpacity, overlap) { // Mandatory parameters this.point = point; this.html = html; // Optional parameters this.classname = classname||""; this.pixelOffset = pixelOffset||new GSize(0,0); if (percentOpacity) { if(percentOpacity<0){percentOpacity=0;} if(percentOpacity>100){percentOpacity=100;} } this.percentOpacity = percentOpacity; this.overlap=overlap||false; this.hidden = false; } ELabel.prototype = new GOverlay(); ELabel.prototype.initialize = function(map) { var div = document.createElement("div"); div.style.position = "absolute"; div.innerHTML = '

' + this.html + '

' ; map.getPane(G_MAP_FLOAT_SHADOW_PANE).appendChild(div); this.map_ = map; this.div_ = div; if (this.percentOpacity) { if(typeof(div.style.filter)=='string'){div.style.filter='alpha(opacity:'+this.percentOpacity+')';} if(typeof(div.style.KHTMLOpacity)=='string'){div.style.KHTMLOpacity=this.percentOpacity/100;} if(typeof(div.style.MozOpacity)=='string'){div.style.MozOpacity=this.percentOpacity/100;} if(typeof(div.style.opacity)=='string'){div.style.opacity=this.percentOpacity/100;} } if (this.overlap) { var z = GOverlay.getZIndex(this.point.lat()); this.div_.style.zIndex = z; } if (this.hidden) { this.hide(); } } ELabel.prototype.remove = function() { this.div_.parentNode.removeChild(this.div_); } ELabel.prototype.copy = function() { return new ELabel(this.point, this.html, this.classname, this.pixelOffset, this.percentOpacity, this.overlap); } ELabel.prototype.redraw = function(force) { var p = this.map_.fromLatLngToDivPixel(this.point); var h = parseInt(this.div_.clientHeight); this.div_.style.left = (p.x + this.pixelOffset.width) + "px"; this.div_.style.top = (p.y +this.pixelOffset.height - h) + "px"; } ELabel.prototype.show = function() { if (this.div_) { this.div_.style.display=""; this.redraw(); } this.hidden = false; } ELabel.prototype.hide = function() { if (this.div_) { this.div_.style.display="none"; } this.hidden = true; } ELabel.prototype.isHidden = function() { return this.hidden; } ELabel.prototype.supportsHide = function() { return true; } ELabel.prototype.setContents = function(html) { this.html = html; this.div_.innerHTML = '

' + this.html + '

' ; this.redraw(true); } ELabel.prototype.setPoint = function(point) { this.point = point; if (this.overlap) { var z = GOverlay.getZIndex(this.point.lat()); this.div_.style.zIndex = z; } this.redraw(true); } ELabel.prototype.setOpacity = function(percentOpacity) { if (percentOpacity) { if(percentOpacity<0){percentOpacity=0;} if(percentOpacity>100){percentOpacity=100;} } this.percentOpacity = percentOpacity; if (this.percentOpacity) { if(typeof(this.div_.style.filter)=='string'){this.div_.style.filter='alpha(opacity:'+this.percentOpacity+')';} if(typeof(this.div_.style.KHTMLOpacity)=='string'){this.div_.style.KHTMLOpacity=this.percentOpacity/100;} if(typeof(this.div_.style.MozOpacity)=='string'){this.div_.style.MozOpacity=this.percentOpacity/100;} if(typeof(this.div_.style.opacity)=='string'){this.div_.style.opacity=this.percentOpacity/100;} } } ELabel.prototype.getPoint = function() { return this.point; } ELabel.prototype.U = function() { return this.point; } ELabel.prototype.V = function() { return this.point; } ELabel.prototype.W = function() { return this.point; } ELabel.prototype.X = function() { return this.point; } ELabel.prototype.Y = function() { return this.point; } ELabel.prototype.Z = function() { return this.point; }

Ok, aside from a glitch we are working on as I write this, I'm feeling like a proud father. EdsBoatTips is growing! For those of you who are regulars, you'll notice some changes on the site today. First, as promised a week or so ago, we've added Pacer Wire and Cable as a sponsor to the site. They have provided some really useful links for boaters who need tools, wire and cable when doing some of their own wiring. Please check them out. They wouldn't be on the site if I didn't think they offered good gear.

You'll also notice some newly added links over in the left column. Ben Ellison's Panbo site is an award winning electronics blog and Ben is a fellow contributor to Cruising World magazine and renowned guru in the world of marine electronics. Yes, I have been added to the list of esteemed Cruising World bloggers along with Ben and old friends Herb McCormick, Alvah Simon, Elaine Lembo and Mark Pillsbury. For my power boat friends, relax! Remember I like all boats power and sail, so I will continue to post material useful to all.

Additionally, I've added the link to BoatExam.com. This will be a useful site for new folks just getting into boating or existing boaters that have children that need to get a state or provincial license to operate a boat.

Finally, thanks to Peter Lindquist for giving me the heads up this morning about the issue we're having with the right margin cutting off text. We're working on that now and hope to get it resolved overnight.

Latest


Gear


Videos