X-Git-Url: https://git.argeo.org/?a=blobdiff_plain;f=org.argeo.app.geo%2Fsrc%2Forg%2Fargeo%2Fapp%2Fol%2FLayer.java;h=feb0700175d7ab67cd9ab1044c11d65570dbcf93;hb=6e13b9416a5fd1f5477eb7233f86d3eacbb88c55;hp=6cc73f3fa0d891223a8f87aaf9949cc06cb17175;hpb=8a490e540ac623b3545b1bd3da65ecbf2e4b6436;p=gpl%2Fargeo-suite.git diff --git a/org.argeo.app.geo/src/org/argeo/app/ol/Layer.java b/org.argeo.app.geo/src/org/argeo/app/ol/Layer.java index 6cc73f3..feb0700 100644 --- a/org.argeo.app.geo/src/org/argeo/app/ol/Layer.java +++ b/org.argeo.app.geo/src/org/argeo/app/ol/Layer.java @@ -30,14 +30,19 @@ public class Layer extends AbstractOlObject { executeMethod(getMethodName(), source); } - public void setMinResolution(long minResolution) { + public Source getSource() { + String reference = getReference() + ".getSource()"; + return new Source(getJsClient(), reference); + } + + public void setMinResolution(double minResolution) { if (isNew()) getNewOptions().put("minResolution", minResolution); else executeMethod(getMethodName(), minResolution); } - public void setMaxResolution(long maxResolution) { + public void setMaxResolution(double maxResolution) { if (isNew()) getNewOptions().put("maxResolution", maxResolution); else