@Api(allMethods=true) public class ClientMapInfo extends Object implements ClientWidgetInfo
Since version 1.10.0 this configuration object implements ClientWidgetInfo, so that it can be easily
retrieved like any other widget configuration object.
| Constructor and Description |
|---|
ClientMapInfo() |
| Modifier and Type | Method and Description |
|---|---|
String |
getBackgroundColor()
Gets the background color of the map, expressed as a hexadecimal string (eg '#FFFFFF').
|
String |
getCrs()
Get the coordinate reference system of this map (SRS notation).
|
UnitType |
getDisplayUnitType()
Returns the display unit type of this map.
|
String |
getId()
Get the id of this map.
|
org.geomajas.geometry.Bbox |
getInitialBounds()
Returns the startup bounds/extent of this map.
|
List<ClientLayerInfo> |
getLayers()
Get the list of layers of this map.
|
ClientLayerTreeInfo |
getLayerTree()
Get the layer tree that belongs with this map.
|
FeatureStyleInfo |
getLineSelectStyle()
Get the line selection style for this map.
|
org.geomajas.geometry.Bbox |
getMaxBounds()
Returns the maximum bounds/extent of this map.
|
float |
getMaximumScale()
Deprecated.
|
double |
getPixelLength()
Get the length in meters of a pixel on the map.
|
FeatureStyleInfo |
getPointSelectStyle()
Get the point selection style for this map.
|
FeatureStyleInfo |
getPolygonSelectStyle()
Get the polygon selection style for this map.
|
int |
getPrecision()
Get the precision of this map (number of decimals).
|
ClientPreferredPixelsPerTile |
getPreferredPixelsPerTile()
Get the preferred pixels per tile size you wish the client will fetch from the server.
|
List<Double> |
getResolutions()
Deprecated.
|
ScaleConfigurationInfo |
getScaleConfiguration()
Retruns the scale configuration of this map.
|
ClientToolbarInfo |
getToolbar()
Get the tool bar that belongs with this map.
|
double |
getUnitLength()
Get the unit length of this map in actual meters.
|
ClientUserDataInfo |
getUserData()
Get the custom configuration data.
|
BoundsLimitOption |
getViewBoundsLimitOption()
Get configuration option for limiting the mapview's bounds.
|
Map<String,ClientWidgetInfo> |
getWidgetInfo()
Get configuration for (custom) map widgets.
|
ClientWidgetInfo |
getWidgetInfo(String widget)
Get configuration for a (custom) map widgets.
|
boolean |
isPanButtonsEnabled()
Should this map show pan buttons ?
|
boolean |
isResolutionsRelative()
Deprecated.
|
boolean |
isScaleBarEnabled()
Should this map show a scalebar ?
|
void |
setBackgroundColor(String backgroundColor)
Set the background color of this map, expressed as a hexadecimal string (eg '#FFFFFF').
|
void |
setCrs(String crs)
Set the coordinate reference system of this map (SRS notation).
|
void |
setDisplayUnitType(UnitType displayUnitType)
Set the display unit type of this map.
|
void |
setId(String id)
Set the id of this map (auto-set by spring).
|
void |
setInitialBounds(org.geomajas.geometry.Bbox initialBounds)
Set the startup bounds/extent of this map.
|
void |
setLayers(List<ClientLayerInfo> layers)
Set the list of layers of this map.
|
void |
setLayerTree(ClientLayerTreeInfo layerTree)
Set layer tree that belongs with this map.
|
void |
setLineSelectStyle(FeatureStyleInfo lineSelectStyle)
Set the line selection style for this map.
|
void |
setMaxBounds(org.geomajas.geometry.Bbox maxBounds)
Sets the maximum bounds/extent of this map.
|
void |
setMaximumScale(float maximumScale)
|
void |
setPanButtonsEnabled(boolean panButtonsEnabled)
Enable the pan buttons for this map.
|
void |
setPixelLength(double pixelLength)
Set the unit length in meters of a pixel the map (auto-set by Spring).
|
void |
setPointSelectStyle(FeatureStyleInfo pointSelectStyle)
Set the point selection style for this map.
|
void |
setPolygonSelectStyle(FeatureStyleInfo polygonSelectStyle)
Set the polygon selection style for this map.
|
void |
setPrecision(int precision)
Set the precision of this map (number of decimals).
|
void |
setPreferredPixelsPerTile(ClientPreferredPixelsPerTile preferredPixelsPerTile)
Set the preferred pixels per tile size you wish the client will fetch from the server.
|
void |
setResolutions(List<Double> resolutions)
|
void |
setResolutionsRelative(boolean resolutionsRelative)
|
void |
setScaleBarEnabled(boolean scaleBarEnabled)
Enable the scalebar for this map.
|
void |
setScaleConfiguration(ScaleConfigurationInfo scaleConfiguration)
Sets the scale configuration of this map.
|
void |
setToolbar(ClientToolbarInfo toolbar)
Set tool bar that belongs with this map.
|
void |
setUnitLength(double unitLength)
Set the unit length of the map (auto-set by Spring).
|
void |
setUserData(ClientUserDataInfo userData)
Set the custom configuration data you wish to pass to the client.
|
void |
setViewBoundsLimitOption(BoundsLimitOption viewBoundsLimitOption)
Sets the configuration option for limiting the mapview's bounds.
|
void |
setWidgetInfo(Map<String,ClientWidgetInfo> widgetInfo)
Set configuration for (custom) map widgets.
|
String |
toString() |
public String getId()
public void setId(String id)
id - idpublic String getBackgroundColor()
public void setBackgroundColor(String backgroundColor)
backgroundColor - the hex string of the background colorpublic FeatureStyleInfo getLineSelectStyle()
public void setLineSelectStyle(FeatureStyleInfo lineSelectStyle)
lineSelectStyle - line selection stylepublic FeatureStyleInfo getPointSelectStyle()
public void setPointSelectStyle(FeatureStyleInfo pointSelectStyle)
pointSelectStyle - point selection stylepublic FeatureStyleInfo getPolygonSelectStyle()
public void setPolygonSelectStyle(FeatureStyleInfo polygonSelectStyle)
polygonSelectStyle - polygon selection stylepublic String getCrs()
public void setCrs(String crs)
crs - the CRS (SRS notation)public int getPrecision()
public void setPrecision(int precision)
precision - the precision of this map (number of decimals)public boolean isScaleBarEnabled()
public void setScaleBarEnabled(boolean scaleBarEnabled)
scaleBarEnabled - true if enabled (shown)public boolean isPanButtonsEnabled()
public void setPanButtonsEnabled(boolean panButtonsEnabled)
panButtonsEnabled - true if enabled (shown)public UnitType getDisplayUnitType()
public void setDisplayUnitType(UnitType displayUnitType)
displayUnitType - unit type of this mappublic ScaleConfigurationInfo getScaleConfiguration()
public void setScaleConfiguration(ScaleConfigurationInfo scaleConfiguration)
scaleConfiguration - the scale configuration@Deprecated public float getMaximumScale()
getScaleConfiguration()getScaleConfiguration().@Deprecated public void setMaximumScale(float maximumScale)
getScaleConfiguration().maximumScale - the maximum scale (pixels/unit)public org.geomajas.geometry.Bbox getInitialBounds()
public void setInitialBounds(org.geomajas.geometry.Bbox initialBounds)
initialBounds - initial bounds@Deprecated public List<Double> getResolutions()
getScaleConfiguration()@Deprecated public void setResolutions(List<Double> resolutions)
resolutions - a list of resolutions (unit/pixel or pure number if relative)@Deprecated public boolean isResolutionsRelative()
getScaleConfiguration()@Deprecated public void setResolutionsRelative(boolean resolutionsRelative)
resolutionsRelative - true if relativepublic ClientLayerTreeInfo getLayerTree()
public void setLayerTree(ClientLayerTreeInfo layerTree)
layerTree - the layer treepublic ClientToolbarInfo getToolbar()
public void setToolbar(ClientToolbarInfo toolbar)
toolbar - the layer treepublic List<ClientLayerInfo> getLayers()
public void setLayers(List<ClientLayerInfo> layers)
layers - the layerspublic double getUnitLength()
public void setUnitLength(double unitLength)
unitLength - unit length in mpublic double getPixelLength()
public void setPixelLength(double pixelLength)
pixelLength - length of pixel in mpublic org.geomajas.geometry.Bbox getMaxBounds()
public void setMaxBounds(org.geomajas.geometry.Bbox maxBounds)
maxBounds - the maximum boundspublic BoundsLimitOption getViewBoundsLimitOption()
public void setViewBoundsLimitOption(BoundsLimitOption viewBoundsLimitOption)
viewBoundsLimitOption - The desired value of the configuration item for limiting the mapview's bounds
when applying the maxBounds limitation.@Api public Map<String,ClientWidgetInfo> getWidgetInfo()
@Api public ClientWidgetInfo getWidgetInfo(String widget)
widget - widget keypublic void setWidgetInfo(Map<String,ClientWidgetInfo> widgetInfo)
widgetInfo - map keyed on widget id containing widget configurationspublic ClientUserDataInfo getUserData()
public void setUserData(ClientUserDataInfo userData)
userData - Custom configuration data@Api public void setPreferredPixelsPerTile(ClientPreferredPixelsPerTile preferredPixelsPerTile)
preferredPixelsPerTile - the preferredPixelsPerTile to set@Api public ClientPreferredPixelsPerTile getPreferredPixelsPerTile()
Copyright © 2015 Geosparc. All Rights Reserved.