kkpowar / gmaps-utility-library-dev

Automatically exported from code.google.com/p/gmaps-utility-library-dev
0 stars 0 forks source link

LabeledMarker .copy() crashes. #32

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
  Use marker.copy() on a labeled marker. E.g. call .showMapBlowup() on a
map that contains a labeled marker.

What do you see instead?
  The code crashes with "this.opt_opts_ is not defined"

Please provide any additional information below.
The fix would be to use the correct variable name in .copy(). I.e. change this:

LabeledMarker.prototype.copy = function() {
  return new LabeledMarker(this.latlng_, this.opt_opts_);
}

to this:

LabeledMarker.prototype.copy = function() {
  return new LabeledMarker(this.latlng_, this.opts_);
}

Original issue reported on code.google.com by goo...@econym.demon.co.uk on 15 May 2008 at 8:54

GoogleCodeExporter commented 8 years ago
This was fixed in r589, (See Issue 16) but is not in the release version yet.  
Packed version updated to match the 
unpacked version in r605.

Original comment by lem...@gmail.com on 15 May 2008 at 5:42

GoogleCodeExporter commented 8 years ago

Original comment by lem...@gmail.com on 26 May 2008 at 4:39