/** * * See also setMaxResolutionToAuto. * * From the OpenLayers docs: * Default max is 360 deg / 256 px (or 1,40625), which corresponds to * zoom level 0 on gmaps. */ public void setMaxResolution(float maxResolution){ getJSObject().setProperty("maxResolution", maxResolution); }
/** * Convenience method for setting max resolution to auto. * * ???Best option when the map can be resized? * */ public void setMaxResolutionToAuto(){ getJSObject().setProperty("maxResolution", "auto"); }
/** * Allow the map to function with OverLays only (no BaseLayer). * * @param allOverlays */ public void setAllOverlays(boolean allOverlays){ getJSObject().setProperty("allOverlays", allOverlays); }
/** * Allow the map to function with OverLays only (no BaseLayer). * * @param allOverlays */ public void setAllOverlays(boolean allOverlays){ getJSObject().setProperty("allOverlays", allOverlays); }
/** * Convenience method for setting max resolution to auto. * * ???Best option when the map can be resized? * */ public void setMaxResolutionToAuto(){ getJSObject().setProperty("maxResolution", "auto"); }
/** * * See also setMaxResolutionToAuto. * * From the OpenLayers docs: * Default max is 360 deg / 256 px (or 1,40625), which corresponds to * zoom level 0 on gmaps. */ public void setMaxResolution(float maxResolution){ getJSObject().setProperty("maxResolution", maxResolution); }
public void setNumZoomLevels(int numZoomLevels) { getJSObject().setProperty("numZoomLevels", numZoomLevels); }
Map(Element e, MapOptions options) { super(MapImpl.create(e, options.getJSObject())); }
/** * The upper bounds of the spatial coordinate reference system, provided * in the units that CRS. * OR * The upper bounds of the spatial data, provided in the units of the CRS * in which the spatial data is served. * * @param maxExtent - a bounding rectangle */ public void setMaxExtent(Bounds maxExtent) { getJSObject().setProperty("maxExtent", maxExtent.getJSObject()); }
/** * The upper bounds of the spatial coordinate reference system, provided * in the units that CRS. * OR * The upper bounds of the spatial data, provided in the units of the CRS * in which the spatial data is served. * * @param maxExtent - a bounding rectangle */ public void setMaxExtent(Bounds maxExtent) { getJSObject().setProperty("maxExtent", maxExtent.getJSObject()); }
/** * Use this method to change the display projection * to another projection. * * @param projection */ public void setDisplayProjection(Projection projection) { getJSObject().setProperty("displayProjection", projection.getJSObject()); }
/** * The lower bounds of the spatial coordinate reference system, provided * in the units that CRS. * OR * The lower bounds of the spatial data, provided in the units of the CRS * in which the spatial data is served. * * @param minExtent - a bounding rectangle */ public void setMinExtent(Bounds minExtent) { getJSObject().setProperty("minExtent", minExtent.getJSObject()); }
/** * Use this method to change the display projection * to another projection. * * @param projection */ public void setDisplayProjection(Projection projection) { getJSObject().setProperty("displayProjection", projection.getJSObject()); }
/** * The lower bounds of the spatial coordinate reference system, provided * in the units that CRS. * OR * The lower bounds of the spatial data, provided in the units of the CRS * in which the spatial data is served. * * @param minExtent - a bounding rectangle */ public void setMinExtent(Bounds minExtent) { getJSObject().setProperty("minExtent", minExtent.getJSObject()); }
public void setControls(JObjectArray controls) { getJSObject().setProperty("controls", controls.getJSObject()); }
public void setTileSize(Size size){ getJSObject().setProperty("tileSize", size.getJSObject()); }
public void setOptions(MapOptions mapOptions){ MapImpl.setOptions(getJSObject(), mapOptions.getJSObject()); }
public void setControls(JObjectArray controls) { getJSObject().setProperty("controls", controls.getJSObject()); }
/** * For information on how OpenLayers can be configured to use different scales/resolutions, see: * <br/> * http://trac.openlayers.org/wiki/SettingZoomLevels * * @param resolutions -array of resolutions */ public void setResolutions(double[] resolutions){ JDoubleArray array = JDoubleArray.create(resolutions); getJSObject().setProperty("resolutions", array.getJSObject()); }
/** * For information on how OpenLayers can be configured to use different scales/resolutions, see: * <br/> * http://trac.openlayers.org/wiki/SettingZoomLevels * * @param resolutions -array of resolutions */ public void setResolutions(double[] resolutions){ JDoubleArray array = JDoubleArray.create(resolutions); getJSObject().setProperty("resolutions", array.getJSObject()); }