@Api(allMethods=true) public abstract class ClientLayerInfo extends Object implements IsInfo
layerInfo field.| Constructor and Description |
|---|
ClientLayerInfo() |
| Modifier and Type | Method and Description |
|---|---|
String |
getCrs()
Get the crs of this layer (same as server layer).
|
String |
getId()
Get the unique id of this layer.
|
String |
getLabel()
Get the user label of this layer.
|
LayerInfo |
getLayerInfo()
Get the layer information of this layer (optional, auto-copied from Spring context).
|
LayerType |
getLayerType()
Get the type of this layer (same as server layer).
|
org.geomajas.geometry.Bbox |
getMaxExtent()
Get the maximum visible extent of this layer (in map space).
|
ScaleInfo |
getMaximumScale()
Get the maximum scale for which this layer should be visible (maximum zoom in).
|
ScaleInfo |
getMinimumScale()
Get the minimum scale for which this layer should be visible (maximum zoom out).
|
String |
getServerLayerId()
Get the layer id of the server layer.
|
ClientUserDataInfo |
getUserData()
Get the custom configuration data.
|
double |
getViewScaleMax()
Deprecated.
|
double |
getViewScaleMin()
Deprecated.
|
Map<String,ClientWidgetInfo> |
getWidgetInfo()
Get configuration for (custom) layer widgets.
|
ClientWidgetInfo |
getWidgetInfo(String widget)
Get configuration for a (custom) layer widgets.
|
ScaleInfo |
getZoomToPointScale()
Get the scale that should be used when zooming in on a point feature.
|
boolean |
isVisible()
Is this layer be visible at startup ?
|
void |
setId(String id)
Set the unique id of this layer (auto-copied from Spring context).
|
void |
setLabel(String label)
Set the user label of this layer.
|
void |
setLayerInfo(LayerInfo layerInfo)
Set the layer information of this layer (optional, auto-copied from Spring context).
|
void |
setMaxExtent(org.geomajas.geometry.Bbox maxExtent)
Set the maximum visible extent of this layer in map space (auto-set by Spring).
|
void |
setMaximumScale(ScaleInfo maximumScale)
Set the maximum scale for which this layer should be visible (maximum zoom in).
|
void |
setMinimumScale(ScaleInfo minimumScale)
Set the minimum scale for which this layer should be visible (maximum zoom out).
|
void |
setServerLayerId(String serverLayerId)
Set the server layer id.
|
void |
setUserData(ClientUserDataInfo userData)
Set the custom configuration data you wish to pass to the client.
|
void |
setViewScaleMax(double viewScaleMax)
Deprecated.
|
void |
setViewScaleMin(double viewScaleMin)
Deprecated.
|
void |
setVisible(boolean visible)
Set this layer visible at startup.
|
void |
setWidgetInfo(Map<String,ClientWidgetInfo> widgetInfo)
Set configuration for (custom) layer widgets.
|
void |
setZoomToPointScale(ScaleInfo zoomToPointScale)
Set the scale that should be used when zooming in on a point feature.
|
public String getId()
public void setId(String id)
id - idpublic String getServerLayerId()
public void setServerLayerId(String serverLayerId)
Layer bean.serverLayerId - server layer idpublic String getLabel()
public void setLabel(String label)
label - labelpublic boolean isVisible()
public void setVisible(boolean visible)
visible - visible status@Deprecated public double getViewScaleMin()
getMinimumScale()@Deprecated public void setViewScaleMin(double viewScaleMin)
setMinimumScale(ScaleInfo)}viewScaleMin - scale (pix/map unit)@Deprecated public double getViewScaleMax()
getMaximumScale()@Deprecated public void setViewScaleMax(double viewScaleMax)
setMaximumScale(ScaleInfo)viewScaleMax - scale (pix/map unit)public ScaleInfo getMinimumScale()
public void setMinimumScale(ScaleInfo minimumScale)
minimumScale - the minimum scalepublic ScaleInfo getMaximumScale()
public void setMaximumScale(ScaleInfo maximumScale)
maximumScale - the maximum scalepublic ScaleInfo getZoomToPointScale()
maximumScale of
the layer.public void setZoomToPointScale(ScaleInfo zoomToPointScale)
maximumScale of
the layer.zoomToPointScale - the scalepublic org.geomajas.geometry.Bbox getMaxExtent()
public void setMaxExtent(org.geomajas.geometry.Bbox maxExtent)
maxExtent - visible extentpublic LayerInfo getLayerInfo()
public void setLayerInfo(LayerInfo layerInfo)
layerInfo - informationpublic LayerType getLayerType()
public String getCrs()
@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 dataCopyright © 2015 Geosparc. All Rights Reserved.