From a572f6632667afd39a4f2c85b5b3e46d0fd1a2cb Mon Sep 17 00:00:00 2001 From: Tino Desjardins Date: Tue, 5 Sep 2023 12:49:40 +0200 Subject: [PATCH] Extent docs in ViewOptions --- gwt-ol3-client/src/main/java/ol/ViewOptions.java | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/gwt-ol3-client/src/main/java/ol/ViewOptions.java b/gwt-ol3-client/src/main/java/ol/ViewOptions.java index 627b15f7a..98c2fc2f7 100644 --- a/gwt-ol3-client/src/main/java/ol/ViewOptions.java +++ b/gwt-ol3-client/src/main/java/ol/ViewOptions.java @@ -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. @@ -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); @@ -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);