Skip to content

Commit

Permalink
Extent docs in ViewOptions
Browse files Browse the repository at this point in the history
  • Loading branch information
TDesjardins committed Sep 5, 2023
1 parent 19dc612 commit a572f66
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion gwt-ol3-client/src/main/java/ol/ViewOptions.java
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*******************************************************************************
* Copyright 2014, 2017 gwt-ol3
* Copyright 2014, 2023 gwt-ol
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down Expand Up @@ -29,9 +29,17 @@
@JsType(isNative = true, namespace = JsPackage.GLOBAL, name = "Object")
public class ViewOptions implements Options {

/**
* @param coordinate The initial center for the view.
*/
@JsProperty
public native void setCenter(Coordinate coordinate);

/**
* The extent that constrains the view, in other words, nothing outside of this extent can be visible on the map.
*
* @param extent extent that constrains the view
*/
@JsProperty
public native void setExtent(Extent extent);

Expand All @@ -47,6 +55,11 @@ public class ViewOptions implements Options {
@JsProperty
public native void setMinZoom(double minZoom);

/**
* The projection. The default is Spherical Mercator.
*
* @param projection projection
*/
@JsProperty
public native void setProjection(Projection projection);

Expand Down

0 comments on commit a572f66

Please sign in to comment.