back | source
Enable/Disable Keyboard and Mouse
  1. Enable keyboard input
    map.Ui.Keyboard.enable(true);
    Example
  2. Enable map to slide a little after move map by keyboard
    map.Ui.Keyboard.enableInertia(true);
    Example
  3. Enable all mouse events
    map.Ui.Mouse.enable(true);
    Example
  4. Enable mouse click
    map.Ui.Mouse.enableClick(true);
    Example
  5. Enable dragging
    map.Ui.Mouse.enableDrag(true);
    Example
  6. Enable wheel scrolling
    map.Ui.Mouse.enableWheel(true);
    Example
  7. Enable map to slide a little after dragging (mouse)
    map.Ui.Mouse.enableInertia(true);
    Example