Generic navigation map controller. This controller allows for panning and zooming on the map in many different ways. Options are the following:
- Panning: Drag the map to pan.
- Double click: Double clicking on some location will see the map zoom in to that location.
- Zoom to rectangle: By holding shift or ctrl and dragging at the same time, a rectangle will appear on the map. On mouse up, the map will than zoom to that rectangle.
For zooming using the mouse wheel there are 2 options, defined by the ScrollZoomType enum. These options are the following:
- ScrollZoomType.ZOOM_CENTER: Zoom in/out so that the current center of the map remains.
- ScrollZoomType.ZOOM_POSITION: Zoom in/out so that the mouse world position remains the same. Can be great for many subsequent double clicks, to make sure you keep zooming to the same location (wherever the mouse points to).
@author Pieter De Graef