Interface KeyboardNavigationOptions
- All Superinterfaces:
Serializable
- All Known Subinterfaces:
MapOptions
- All Known Implementing Classes:
DefaultMapOptions
Leaflet map keyboard navigation options
- Since:
- 2020-03-14
- Version:
- 1.0
- Author:
- Gabor Kokeny Email: kokeny19@gmail.com
-
Method Summary
Modifier and TypeMethodDescriptiondoubleReturns the amount of pixels the map pans when pressing an arrow key.booleanReturns whether keyboard navigation of the map is enabled.voidsetKeyboard(boolean keyboard) Makes the map focusable and allows users to navigate the map with keyboard arrows and +/- keys.voidsetKeyboardPanDelta(double keyboardPanDelta) Amount of pixels to pan when pressing an arrow key.
-
Method Details
-
isKeyboard
boolean isKeyboard()Returns whether keyboard navigation of the map is enabled.- Returns:
trueif keyboard navigation is enabled
-
setKeyboard
void setKeyboard(boolean keyboard) Makes the map focusable and allows users to navigate the map with keyboard arrows and +/- keys.- Parameters:
keyboard- set true to enable keyboard navigation
-
getKeyboardPanDelta
double getKeyboardPanDelta()Returns the amount of pixels the map pans when pressing an arrow key.- Returns:
- the amount of pixels to pan when pressing an arrow key
-
setKeyboardPanDelta
void setKeyboardPanDelta(double keyboardPanDelta) Amount of pixels to pan when pressing an arrow key.- Parameters:
keyboardPanDelta- amount of pixels
-