Ignore:
Timestamp:
Dec 2, 2009, 8:33:09 PM (15 years ago)
Author:
rider
Message:

ZoomIn/Out? changed

File:
1 edited

Legend:

Unmodified
Added
Removed
  • oceandb/jQuery_Prototype/script/oceandb.js

    r113 r114  
    216216  // Google Earth
    217217  map.addMapType(G_SATELLITE_3D_MAP);
    218   // GZoom Control
    219   map.addControl(new GZoomControl(
    220         {
    221           sButtonHTML:"<img src='image/zooming.gif' />",
    222           sButtonZoomingHTML:"<img src='image/zoom.jpg' />",
    223           oButtonStartingStyle:{width:'24px',height:'24px'},
    224           sColor:'#000',
    225           nOpacity:.2,
    226           sBorder:"2px solid red",
    227           nOverlayRemoveMS:'10000',
    228           bForceCheckResize:'true'
    229         }
    230   ),new GControlPosition(G_ANCHOR_BOTTOM_LEFT,new GSize(3,3)));
     218  // DragZoom Properties
     219  var otherOpts = {
     220    buttonStartingStyle: {background: '#FFF', paddingTop: '4px', paddingLeft: '4px', border:'1px solid black'},
     221    buttonHTML: "<img title='Drag Zoom In' src='image/zoomin.gif'>",
     222    buttonStyle: {width:'25px', height:'25px'},
     223    buttonZoomingHTML: '請選取範圍',
     224    buttonZoomingStyle: {background:'yellow',width:'85px', height:'100%'},
     225    backButtonHTML: "<img title='Zoom Back Out' src='image/zoomout.gif'>",
     226    backButtonStyle: {display:'none',marginTop:'5px',width:'25px', height:'25px'},
     227    backButtonEnabled: true,
     228          overlayRemoveTime: 1500
     229  }
     230  // DragZoom Control
     231  map.addControl(new DragZoomControl({}, otherOpts, {}),new GControlPosition(G_ANCHOR_BOTTOM_LEFT,new GSize(20,60)));
    231232  // 設定預設經緯度北緯 23.8, 東經 121, 預設比例尺 100 公里(7)
    232233  map.setCenter(new GLatLng(23.8,121), 7);
Note: See TracChangeset for help on using the changeset viewer.