Displaying 3 results from an estimated 3 matches for "addlargecontrol".
Did you mean:
addlargecontrols
2009 Sep 20
0
r30 committed - jslint now passing for google and googlev3
...trunk/source/mxn.google.core.js Sun Sep 20 04:50:06 2009
+++ /trunk/source/mxn.google.core.js Sun Sep 20 06:26:44 2009
@@ -83,9 +83,11 @@
// Google has a combined zoom and pan control.
if (args.zoom || args.pan) {
- (args.zoom == ''large'')
- ? this.addLargeControls()
- : this.addSmallControls();
+ if (args.zoom == ''large''){
+ this.addLargeControls();
+ } else {
+ this.addSmallControls();
+ }
}
if (args.scale) {
@@ -184,7...
2009 Jun 01
0
[mapstraction commit] r12 - Implemented most Cloudmade functions. Still requires image, tile and KML/GeoRSS overlays
...this.maps[this.api].checkResize();
},
addControls: function( args ) {
var map = this.maps[this.api];
- // TODO: Add provider code
+ var c = this.addControlsArgs;
+ switch (c.zoom) {
+ 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;
+...
2009 Dec 13
0
r65 committed - Use the GeoCommons addOverlay method
...this.addControls({
+ zoom: ''small'',
+ legend: "open"
+ });
+ // showControl("Zoom", args.zoom);
+ // showControl("Legend", args.legend, "open");
},
addLargeControls: function() {
var map = this.maps[this.api];
- showControl("Zoom", args.zoom);
- showControl("Layers", args.layers);
- showControl("Legend", args.legend, "open");
+ this.addControls({
+...