Mercurial > hg > batmud > gmap2
changeset 179:0574f3520674 gmap2
Sync.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Tue, 11 Mar 2014 22:50:38 +0200 |
parents | ddc3ebdeb31e |
children | 662e8b5ec9a5 |
files | lib/markerwithlabel.js |
diffstat | 1 files changed, 7 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/lib/markerwithlabel.js Tue Mar 11 22:45:11 2014 +0200 +++ b/lib/markerwithlabel.js Tue Mar 11 22:50:38 2014 +0200 @@ -1,6 +1,6 @@ /** * @name MarkerWithLabel for V3 - * @version 1.1.9 [June 30, 2013] + * @version 1.1.9 [March 6, 2014] * @author Gary Little (inspired by code from Marc Ridey of Google). * @copyright Copyright 2012 Gary Little [gary at luxcentral.com] * @fileoverview MarkerWithLabel extends the Google Maps JavaScript API V3 @@ -38,14 +38,15 @@ /** * @param {Function} childCtor Child class. * @param {Function} parentCtor Parent class. + * @private */ function inherits(childCtor, parentCtor) { - /** @constructor */ - function tempCtor() {}; + /* @constructor */ + function tempCtor() {} tempCtor.prototype = parentCtor.prototype; childCtor.superClass_ = parentCtor.prototype; childCtor.prototype = new tempCtor(); - /** @override */ + /* @override */ childCtor.prototype.constructor = childCtor; } @@ -79,6 +80,7 @@ // Get the DIV for the "X" to be displayed when the marker is raised. this.crossDiv_ = MarkerLabel_.getSharedCross(crossURL); } + inherits(MarkerLabel_, google.maps.OverlayView); /** @@ -561,6 +563,7 @@ // that the marker label listens for in order to react to state changes. google.maps.Marker.apply(this, arguments); } + inherits(MarkerWithLabel, google.maps.Marker); /**