Skip to content

Commit

Permalink
Remove method setConstrainResolution and add setOnFocusOnly
Browse files Browse the repository at this point in the history
  • Loading branch information
TDesjardins committed Apr 29, 2024
1 parent a572f66 commit 0f2a49f
Showing 1 changed file with 6 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -35,12 +35,14 @@ public class DefaultInteractionsOptions implements Options {
public native void setAltShiftDragRotate(boolean altShiftDragRotate);

/**
* Zoom to the closest integer zoom level after the wheel/trackpad or pinch
* gesture ends. Default is false.
* @param constrainResolution
* Interact only when the map has the focus. This affects the MouseWheelZoom
* and DragPan interactions and is useful when page scroll is desired for maps
* that do not have the browser's focus.
*
* @param onFocusOnly
*/
@JsProperty
public native void setConstrainResolution(boolean constrainResolution);
public native void setOnFocusOnly(boolean onFocusOnly);

/**
* Whether double click zoom is desired. Default is true.
Expand Down

0 comments on commit 0f2a49f

Please sign in to comment.