When you add a map to your application, you can automatically pan, zoom, and rotate the map using the keyboard, mouse, or touch. The following table lists the set of predefined touch, mouse, and keyboard shortcuts that are enabled by default:
Map navigation | Touch action | Mouse action | Key action |
---|---|---|---|
Pan the map | Touch, hold, and drag on the map | Press, hold, and drag the left mouse button | Press the left (pan west), right (pan east), up (pan north), or down (pan south) arrows |
Zoom in (+) or zoom out (-) with animation | Pinch open (+) or pinch close (-) on the map | Scroll the mouse wheel forward (+) or backward (-) | Press the + / = key for in Press the - / _ key for out |
Zoom in to the next level of detail or by a factor of 2 | Double tap on the map | Double-click the left mouse button | Press the + / = key |
Zoom out to the next level of detail or by a factor of 2 | Single tap with two fingers simultaneously | Double-click of right mouse button | Press the - / _ key |
Rotate | Two-finger pinch and twist fingers to rotate the map or scene | On scenes only, press and hold while dragging (left to right) the right mouse button | Press the 'a' (rotate west) or 'd' (rotate east) keys |
Set viewpoint to north | N/A | N/A | Press the 'n' key |