codesite-noreply at google.com
2009-Aug-24  02:59 UTC
[Mapstraction] [mapstraction] r22 committed - Added super-simple cloudmade provider
Revision: 22
Author: ajturner
Date: Sun Aug 23 19:47:07 2009
Log: Added super-simple cloudmade provider
http://code.google.com/p/mapstraction/source/detail?r=22
Modified:
  /trunk/source/mxn.cloudmade.core.js
======================================--- /trunk/source/mxn.cloudmade.core.js
Thu Jun  4 23:12:01 2009
+++ /trunk/source/mxn.cloudmade.core.js	Sun Aug 23 19:47:07 2009
@@ -11,14 +11,12 @@
          applyOptions: function(){
              var map = this.maps[this.api];
-
              if(this.options.enableScrollWheelZoom){
                map.enableScrollWheelZoom();
              }
          },
          resizeTo: function(width, height){
-            // TODO: Add provider code
              this.maps[this.api].checkResize();
          },
@@ -46,14 +44,12 @@
          addSmallControls: function() {
              var map = this.maps[this.api];
-
  	    map.addControl(new CM.SmallMapControl());
  	    this.addControlsArgs.zoom = ''small'';
          },
          addLargeControls: function() {
              var map = this.maps[this.api];
-
  	    map.addControl(new CM.LargeMapControl());
  	    this.addControlsArgs.zoom = ''large'';
          },
@@ -94,6 +90,10 @@
  	    map.removeOverlay(marker.proprietary_marker);
          },
+        removeAllMarkers: function() {
+	    // Done in mxn.core.js
+        },
+
          declutterMarkers: function(opts) {
              var map = this.maps[this.api];