codesite-noreply at google.com
2009-Nov-06 17:38 UTC
[Mapstraction] [mapstraction] r55 committed - avoid duplicate code
Revision: 55 Author: freyfogle Date: Fri Nov 6 09:38:24 2009 Log: avoid duplicate code http://code.google.com/p/mapstraction/source/detail?r=55 Modified: /trunk/source/mxn.googlev3.core.js ======================================--- /trunk/source/mxn.googlev3.core.js Fri Nov 6 07:21:27 2009 +++ /trunk/source/mxn.googlev3.core.js Fri Nov 6 09:38:24 2009 @@ -351,6 +351,7 @@ options.position = this.location.toProprietary(this.api); options.map = this.map; + var marker = new google.maps.Marker(options); if (this.infoBubble){ @@ -366,18 +367,19 @@ } if (this.hoverIconUrl){ + var gSize = new google.maps.Size(this.iconSize[0], + this.iconSize[1]); + var zerozero = new google.maps.Point(0,0); var hIcon = new google.maps.MarkerImage( this.hoverIconUrl, - new google.maps.Size(this.iconSize[0], - this.iconSize[1]), - new google.maps.Point(0,0), + gSize, + zerozero, gAnchorPoint ); var Icon = new google.maps.MarkerImage( this.iconUrl, - new google.maps.Size(this.iconSize[0], - this.iconSize[1]), - new google.maps.Point(0,0), + gSize, + zerozero, gAnchorPoint ); google.maps.event.addListener(