List default controls and interactions
This commit is contained in:
@@ -8,6 +8,12 @@ goog.require('ol.control.Zoom');
|
||||
|
||||
|
||||
/**
|
||||
* Set of default controls. Unless configured otherwise, this returns a
|
||||
* collection containing an instance of each of the following controls:
|
||||
* * {@link ol.control.Zoom}
|
||||
* * {@link ol.control.Rotate}
|
||||
* * {@link ol.control.Attribution}
|
||||
* * {@link ol.control.Logo}
|
||||
* @param {olx.control.DefaultsOptions=} opt_options Defaults options.
|
||||
* @return {ol.Collection} Controls.
|
||||
* @todo api
|
||||
|
||||
@@ -21,7 +21,16 @@ goog.require('ol.interaction.PinchZoom');
|
||||
* different order for interactions, you will need to create your own
|
||||
* {@link ol.interaction.Interaction} instances and insert them into a
|
||||
* {@link ol.Collection} in the order you want before creating your
|
||||
* {@link ol.Map} instance.
|
||||
* {@link ol.Map} instance. The default set of interactions, in sequence, is:
|
||||
* * {@link ol.interaction.DragRotate}
|
||||
* * {@link ol.interaction.DoubleClickZoom}
|
||||
* * {@link ol.interaction.DragPan}
|
||||
* * {@link ol.interaction.PinchRotate}
|
||||
* * {@link ol.interaction.PinchZoom}
|
||||
* * {@link ol.interaction.KeyboardPan}
|
||||
* * {@link ol.interaction.KeyboardZoom}
|
||||
* * {@link ol.interaction.MouseWheelZoom}
|
||||
* * {@link ol.interaction.DragZoom}
|
||||
* @param {olx.interaction.DefaultsOptions=} opt_options Defaults options.
|
||||
* @return {ol.Collection} A collection of interactions to be used with
|
||||
* the ol.Map constructor's interactions option.
|
||||
|
||||
Reference in New Issue
Block a user