addToolbar.js 278 B

123456789101112
  1. /**
  2. * Created with WebStorm && Sublime Text 3
  3. * Date: 2015/10/29 14:04
  4. */
  5. window.onload = function() {
  6. map.plugin(["AMap.ToolBar"], function() {
  7. map.addControl(new AMap.ToolBar());
  8. });
  9. if(location.href.indexOf('&guide=1')!==-1){
  10. map.setStatus({scrollWheel:false})
  11. }
  12. }