org.gwtopenmaps.openlayers.client.layer
Class WMSOptions

java.lang.Object
  extended by org.gwtopenmaps.openlayers.client.util.JSObjectWrapper
      extended by org.gwtopenmaps.openlayers.client.layer.LayerOptions
          extended by org.gwtopenmaps.openlayers.client.layer.HTTPRequestLayerOptions
              extended by org.gwtopenmaps.openlayers.client.layer.GridLayerOptions
                  extended by org.gwtopenmaps.openlayers.client.layer.WMSOptions

public class WMSOptions
extends GridLayerOptions

Author:
Edwin Commandeur - Atlis EJS, Curtis Jensen

Constructor Summary
WMSOptions()
           
 
Method Summary
 void setBuffer(int buffer)
          For tiled layers the buffer size can be set.
 void setProjection(String epsgCode)
          Set a non-default projection.
 void setRatio(int ratio)
           
 void setReproject(boolean reproject)
           
 void setSingleTile(boolean b)
          Set the singleTile property to be true or false.
 void setTransitionEffectResize()
          Deprecated. - use setTransitionEffect(TransitionEffect) instead of this convenience method.
 void setUnits(String units)
          e.g.
 void setUntiled()
          Sets singleTile option to true.
 void setWrapDateLine(boolean wrap)
          Set whether or not to wrap at the international date line.
 
Methods inherited from class org.gwtopenmaps.openlayers.client.layer.GridLayerOptions
setTileSize
 
Methods inherited from class org.gwtopenmaps.openlayers.client.layer.LayerOptions
setAlwaysInRange, setApplyAlphaHack, setAttribution, setDisplayInLayerSwitcher, setDisplayOutsideMaxExtent, setGutter, setIsBaseLayer, setLayerOpacity, setMaxExtent, setMaxResolution, setMaxScale, setMinExtent, setMinResolution, setMinScale, setNumZoomLevels, setResolutions, setScales, setTransitionEffect, setTransitionEffect, setVisibility
 
Methods inherited from class org.gwtopenmaps.openlayers.client.util.JSObjectWrapper
getJSObject, setJSObject
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WMSOptions

public WMSOptions()
Method Detail

setSingleTile

public void setSingleTile(boolean 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)


setUntiled

public void setUntiled()
Sets singleTile option to true.


setTransitionEffectResize

public void setTransitionEffectResize()
Deprecated. - use setTransitionEffect(TransitionEffect) instead of this convenience method.

From the OpenLayers examples: The 'resize' effect resamples the current tile and displays it stretched or compressed until the new tile is available.


setProjection

public void setProjection(String epsgCode)
Set a non-default projection. Default projection is EPSG:4326.

Overrides:
setProjection in class LayerOptions
Parameters:
epsgCode - - the EPSG code for the coordinate reference system

setUnits

public void setUnits(String units)
e.g. "m", "km", ...

Overrides:
setUnits in class LayerOptions
Parameters:
units - - see MapOptions

setWrapDateLine

public void setWrapDateLine(boolean wrap)
Set whether or not to wrap at the international date line.

Parameters:
wrap - - true to wrap, false to not wrap

setBuffer

public void setBuffer(int buffer)
For tiled layers the buffer size can be set. The default buffer is 2.

Overrides:
setBuffer in class GridLayerOptions

setRatio

public void setRatio(int ratio)

setReproject

public void setReproject(boolean reproject)


Copyright © 2011 sourceforge. All Rights Reserved.