/** * Set a non-default projection. Default projection is EPSG:4326. * * @param epsgCode - the EPSG code for the coordinate reference system */ public void setProjection(String epsgCode){ getJSObject().setProperty("projection", epsgCode); }
/** * Set a non-default projection. Default projection is EPSG:4326. * * @param epsgCode - the EPSG code for the coordinate reference system */ @Override public void setProjection(String epsgCode) { getJSObject().setProperty("projection", epsgCode); }
/** * Set whether or not to wrap at the international date line. * * @param wrap - true to wrap, false to not wrap */ public void setWrapDateLine(boolean wrap) { getJSObject().setProperty("wrapDateLine", wrap); }
/** * Set whether or not to wrap at the international date line. * * @param wrap - true to wrap, false to not wrap */ public void setWrapDateLine(boolean wrap) { getJSObject().setProperty("wrapDateLine", wrap); }
/** * For tiled layers the buffer size can be set. * * The default buffer is 2. */ public void setBuffer(int buffer){ getJSObject().setProperty("buffer", buffer); }
/** * e.g. "m", "km", ... */ public void setUnits(String units){ getJSObject().setProperty("units", units); }
/** * e.g. "m", "km", ... */ @Override public void setUnits(String units) { getJSObject().setProperty("units", units); }
/** * For tiled layers the buffer size can be set. * * The default buffer is 2. */ @Override public void setBuffer(int buffer) { getJSObject().setProperty("buffer", buffer); }
public void setReproject(boolean reproject) { getJSObject().setProperty("reproject", reproject); } }
public void setRatio(int ratio){ getJSObject().setProperty("ratio", ratio); }
public void setRatio(int ratio) { getJSObject().setProperty("ratio", ratio); }
/** * Set the singleTile property to be true or false. By default singleTile is * set to false. . If true, the map is served as a single tile instead of * separate tiles. * * Why tile or not tile? At www.bostongis.com some guidelines can be found * * Use untiled in the following scenarios: -fairly lightweight (in file * size) geometries that span huge areas -a process constrained WMS server * -you find it annoying that half of your map paints, while the other half * is loading -high-bandwith servers and high-bandwith clients -map images * with embedded scales * * Use tiled in the following scenarios: -have heavy geometries that (in * file size) that span small areas -super fast WMS server or server with * tile caching (built in) -low band-width clients -relatively long pauses * of a completely blank map area that suddenly loads all at once annoys you * (remark: the blank map problem can be solved by setting a transition * effect) * */ public void setSingleTile(boolean b) { getJSObject().setProperty("singleTile", b); }
/** * Set the singleTile property to be true or false. * By default singleTile is set to false. * . * If true, the map is served as a single tile instead of separate tiles. * * Why tile or not tile? * At www.bostongis.com some guidelines can be found * * Use untiled in the following scenarios: * -fairly lightweight (in file size) geometries that span huge areas * -a process constrained WMS server * -you find it annoying that half of your map paints, while the other half is loading * -high-bandwith servers and high-bandwith clients * -map images with embedded scales * * Use tiled in the following scenarios: * -have heavy geometries that (in file size) that span small areas * -super fast WMS server or server with tile caching (built in) * -low band-width clients * -relatively long pauses of a completely blank map area that suddenly loads all at once annoys you * (remark: the blank map problem can be solved by setting a transition effect) * */ public void setSingleTile(boolean b){ getJSObject().setProperty("singleTile", b); }
public WMS(String name, String url, WMSParams params, WMSOptions layerParams) { this(WMSImpl.create(name, url, params.getJSObject(), layerParams.getJSObject())); }
public WMS(String name, String[] urls, WMSParams params, WMSOptions layerParams) { this(WMSImpl.create(name, new JStringArray(urls).getJSObject(), params.getJSObject(), layerParams.getJSObject())); }
public WMS(String name, String url, WMSParams params, WMSOptions layerParams) { this(WMSImpl.create(name, url, params.getJSObject(), layerParams.getJSObject())); }
public WMS(String name, String[] urls, WMSParams params, WMSOptions layerParams) { this(WMSImpl.create(name, new JStringArray(urls).getJSObject(), params.getJSObject(), layerParams.getJSObject())); }
/** * Constructor: ArcGIS93Rest Create a new ArcGIS93Rest layer object. * * Example: (code) ArcGIS93Rest arcGIS93Rest = new ArcGIS93Rest("MyName", * "http://sampleserver1.arcgisonline.com/ArcGIS/rest/services/Specialty/ESRI_StateCityHighway_USA/MapServer/export", * WMSParams ); (end) * * Parameters: name - {String} A name for the layer vetor url[] - {String} * Base url for the ArcGIS server REST service * * */ public ArcGIS93Rest(String name, String[] urls, WMSParams params, WMSOptions layerParams) { this(ArcGIS93RestImpl.create(name, new JStringArray(urls).getJSObject(), params.getJSObject(), layerParams.getJSObject())); }
/** * Constructor: ArcGIS93Rest * Create a new ArcGIS93Rest layer object. * * Example: * (code) * ArcGIS93Rest arcGIS93Rest = new ArcGIS93Rest("MyName", * "http://sampleserver1.arcgisonline.com/ArcGIS/rest/services/Specialty/ESRI_StateCityHighway_USA/MapServer/export", * WMSParams * ); * (end) * * Parameters: * name - {String} A name for the layer * vetor url[] - {String} Base url for the ArcGIS server REST service * * */ public ArcGIS93Rest(String name, String[] urls, WMSParams params, WMSOptions layerParams) { this(ArcGIS93RestImpl.create(name, new JStringArray(urls).getJSObject(), params.getJSObject(), layerParams.getJSObject())); }