Displaying 5 results from an estimated 5 matches for "addsmallcontrols".
2009 Sep 20
0
r30 committed - jslint now passing for google and googlev3
...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 +186,7 @@
setCenter: function(point, options) {...
2009 Sep 21
0
r34 committed - removed deprecated method draggable, all controls off when first creat...
....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();
}
}
+ if (args.scale){
+ var myOptions = {
+ scaleControl:true,
+ scaleControlOptions: {style:google.maps.ScaleControlStyle.DEFAULT}
+ };
+ map.setOptions(myOptions);
+...
2007 Jul 25
1
regarding polylines
...4r mapstraction, i am using yahoo api
, when i tried polylines , its not showing up.. the code is
var map;
window.onload = addCodeToFunction(window.onload,function() {
map = new Mapstraction("map_div","yahoo");
map.setCenterAndZoom(new LatLonPoint(37.3853,-122.0172
),12);map.addSmallControls();
map.addMarkerGroup(new MarkerGroup([addDataToMarker(new Marker(new
LatLonPoint(37.3853,-122.0172)),{infoBubble : "Maude & Fair Oaks <br/> Next
bus is at 14:19:00"}),addDataToMarker(new Marker(new LatLonPoint(37.3958,-
121.9914)),{infoBubble : "Fairwood & Sandia <...
2009 Jun 01
0
[mapstraction commit] r12 - Implemented most Cloudmade functions. Still requires image, tile and KML/GeoRSS overlays
...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;
+ }
},
addSmallControls: function() {
var map = this.m...
2009 Dec 13
0
r65 committed - Use the GeoCommons addOverlay method
...ion(map){
+
+ me.maps[me.api] = map.swf; // Get the actual Flash
object
me.loaded[me.api] = true;
for (var i = 0; i < me.onload[me.api].length; i++) {
me.onload[me.api][i]();
@@ -77,15 +72,21 @@
addSmallControls: function() {
var map = this.maps[this.api];
- showControl("Zoom", args.zoom);
- showControl("Legend", args.legend, "open");
+ this.addControls({
+ zoom: ''small'',
+ legend:...