Displaying 2 results from an estimated 2 matches for "scalecontrol".
Did you mean:
callcontrol
2009 Sep 21
0
r34 committed - removed deprecated method draggable, all controls off when first creat...
...rollwheel = true;
+ }
+ map.setOptions(myOptions);
},
resizeTo: function(width, height){
@@ -50,11 +62,20 @@
this.addSmallControls();
}
}
+ if (args.scale){
+ var myOptions = {
+ scaleControl:true,
+ scaleControlOptions: {style:google.maps.ScaleControlStyle.DEFAULT}
+ };
+ map.setOptions(myOptions);
+ this.addControlsArgs.scale = true;
+ }
},
addSmallControls: function() {
var map = this.maps[this.api];...
2009 Jun 01
0
[mapstraction commit] r12 - Implemented most Cloudmade functions. Still requires image, tile and KML/GeoRSS overlays
...case ''large'':
+ this.addLargeControls();
+ break;
+ case ''small'':
+ this.addSmallControls();
+ break;
+ }
+
+ if (c.map_type) {
+ this.addMapTypeControls();
+ }
+ if (c.scale) {
+ map.addControl(new CM.ScaleControl());
+ this.addControlsArgs.scale = true;
+ }
},
addSmallControls: function() {
var map = this.maps[this.api];
- // TODO: Add provider code
+ map.addControl(new CM.SmallMapControl());
+ this.addControlsArgs.zoom = ''small'&...