|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.gwtopenmaps.openlayers.client.util.JSObjectWrapper
org.gwtopenmaps.openlayers.client.MapOptions
public class MapOptions
Map properties can be configurated by passing a MapOptions object
to the MapWidget
constructor. See also the Map
javadoc.
Constructor Summary | |
---|---|
|
MapOptions()
|
protected |
MapOptions(JSObject jsObject)
|
Method Summary | |
---|---|
void |
removeDefaultControls()
By default, OpenLayers 2.7 adds Attribution, ArgParser, Navigation and PanZoom Controls. |
void |
setAllOverlays(boolean allOverlays)
Allow the map to function with OverLays only (no BaseLayer). |
void |
setControls(JObjectArray controls)
|
void |
setDisplayProjection(Projection projection)
Use this method to change the display projection to another projection. |
void |
setMaxExtent(Bounds maxExtent)
The upper bounds of the spatial coordinate reference system, provided in the units that CRS. |
void |
setMaxResolution(float maxResolution)
See also setMaxResolutionToAuto. |
void |
setMaxResolutionToAuto()
Convenience method for setting max resolution to auto. |
void |
setMaxScale(float maxScale)
|
void |
setMinExtent(Bounds minExtent)
The lower bounds of the spatial coordinate reference system, provided in the units that CRS. |
void |
setMinResolution(float minResolution)
|
void |
setMinScale(float minScale)
|
void |
setNumZoomLevels(int numZoomLevels)
|
void |
setProjection(String projection)
Use this method to change the default projection (EPSG:4326) to another projection. |
void |
setResolutions(double[] resolutions)
For information on how OpenLayers can be configured to use different scales/resolutions, see: http://trac.openlayers.org/wiki/SettingZoomLevels |
void |
setRestrictedExtent(Bounds restrictedExtent)
|
void |
setTileSize(Size size)
|
void |
setUnits(String units)
The units used by the map to express geospatial coordinates. |
void |
setZIndexBase(ZIndexBase zIndexBase)
|
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 |
---|
protected MapOptions(JSObject jsObject)
public MapOptions()
Method Detail |
---|
public void removeDefaultControls()
public void setNumZoomLevels(int numZoomLevels)
public void setAllOverlays(boolean allOverlays)
allOverlays
- public void setControls(JObjectArray controls)
public void setProjection(String projection)
projection
- public void setDisplayProjection(Projection projection)
projection
- public void setMaxExtent(Bounds maxExtent)
maxExtent
- - a bounding rectanglepublic void setMinExtent(Bounds minExtent)
minExtent
- - a bounding rectanglepublic void setRestrictedExtent(Bounds restrictedExtent)
public void setMaxResolution(float maxResolution)
public void setMinResolution(float minResolution)
public void setUnits(String units)
public void setMaxResolutionToAuto()
public void setMaxScale(float maxScale)
public void setMinScale(float minScale)
public void setTileSize(Size size)
public void setZIndexBase(ZIndexBase zIndexBase)
public void setResolutions(double[] resolutions)
resolutions
- -array of resolutions
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |