Displaying 2 results from an estimated 2 matches for "enabledragging".
2009 Sep 21
0
r34 committed - removed deprecated method draggable, all controls off when first creat...
...r map = new google.maps.Map(element, myOptions);
// deal with click
@@ -28,8 +33,15 @@
},
applyOptions: function(){
- var map = this.maps[this.api];
- // TODO: Add provider code
+ var map = this.maps[this.api];
+ var myOptions = [];
+ if (this.options.enableDragging) {
+ myOptions.draggable = true;
+ }
+ if (this.options.enableScrollWheelZoom){
+ myOptions.scrollwheel = true;
+ }
+ map.setOptions(myOptions);
},
resizeTo: function(width, height){
@@ -50,11 +62,20 @@
this.addSmallControls();...
2009 Jun 01
0
[mapstraction commit] r12 - Implemented most Cloudmade functions. Still requires image, tile and KML/GeoRSS overlays
...// TODO: Add provider code
+ map.addControl(new CM.TileLayerControl());
+ this.addControlsArgs.map_type = true;
},
dragging: function(on) {
var map = this.maps[this.api];
- // TODO: Add provider code
+ if (on) {
+ map.enableDragging();
+ } else {
+ map.disableDragging();
+ }
},
setCenterAndZoom: function(point, zoom) {
@@ -61,22 +85,17 @@
addMarker: function(marker, old) {
var map = this.maps[this.api];
var pin = marker.toProprietary(...