codesite-noreply at google.com
2009-Oct-09 14:04 UTC
[Mapstraction] [mapstraction] r51 committed - minor tweaking around markers
Revision: 51 Author: freyfogle Date: Fri Oct 9 07:04:05 2009 Log: minor tweaking around markers http://code.google.com/p/mapstraction/source/detail?r=51 Modified: /trunk/source/mxn.googlev3.core.js ======================================--- /trunk/source/mxn.googlev3.core.js Thu Oct 8 11:19:37 2009 +++ /trunk/source/mxn.googlev3.core.js Fri Oct 9 07:04:05 2009 @@ -118,42 +118,31 @@ }, addMarker: function(marker, old) { - var map = this.maps[this.api]; - var pin = marker.toProprietary(this.api); - - return pin; + return marker.toProprietary(this.api); }, removeMarker: function(marker) { - var map = this.maps[this.api]; - - // TODO: Add provider code + // doesn''t really remove them, just hides them + marker.hide(); }, removeAllMarkers: function() { - var map = this.maps[this.api]; - + var map = this.maps[this.api]; // TODO: Add provider code }, declutterMarkers: function(opts) { var map = this.maps[this.api]; - // TODO: Add provider code }, addPolyline: function(polyline, old) { var map = this.maps[this.api]; - var pl = polyline.toProprietary(this.api); - - // TODO: Add provider code - - return pl; + return polyline.toProprietary(this.api); }, removePolyline: function(polyline) { - var map = this.maps[this.api]; - + var map = this.maps[this.api]; // TODO: Add provider code },