public class OpenLayersMap extends Object
| Modifier and Type | Class and Description |
|---|---|
class |
OpenLayersMap.ZIndexBaseGisViewer
The Class ZIndexBaseGisViewer.
|
| Modifier and Type | Field and Description |
|---|---|
static org.gwtopenmaps.openlayers.client.Bounds |
defaultBounds |
protected static int |
MAX_ZINDEX |
static String |
Z_AXIS_NCWMS_KEY_PARAMETER |
static String |
Z_AXIS_WMS_KEY_PARAMETER |
| Constructor and Description |
|---|
OpenLayersMap(String w,
String h,
int numZoomLevels,
String title,
OpenLayersHandler handler)
Instantiates a new open layers map.
|
| Modifier and Type | Method and Description |
|---|---|
void |
activateClickData(boolean isActivate)
Activate click data.
|
void |
activateDrawBoxControl()
Activate draw box control.
|
void |
activateDrawBoxControl(boolean isActivate)
Activate draw box control.
|
void |
activatePan(boolean isActivate)
Activate pan.
|
void |
activateTransectDraw(boolean isActivate)
Activate transect draw.
|
void |
activateZoomIn(boolean isActivate)
Activate zoom in.
|
void |
activateZoomOut()
Activate zoom out.
|
void |
addBaseLayersToOpenLayerMap(List<GisViewerBaseLayerInterface> layers)
Adds the base layers to open layer map.
|
void |
addLayerItemByWms(LayerItem layerItem,
boolean displayInLayerSwitcher)
Adds the layer item by wms.
|
void |
addLayerItems(List<LayerItem> layerItems,
boolean toTop)
Adds the layer items.
|
void |
addPoint(double x,
double y)
Adds the point.
|
void |
addToolBar(ToolBarPanel toolBarPanel)
Adds the tool bar.
|
void |
changeSize(String w,
String h)
Change size.
|
void |
deactivateDrawBoxControl()
Deactivate draw box control.
|
LayerItem |
getActiveBaseLayer()
Gets the active base layer.
|
com.extjs.gxt.ui.client.widget.ContentPanel |
getContentPanel()
Gets the content panel.
|
com.google.gwt.user.client.ui.Widget |
getDockPanel()
Gets the dock panel.
|
org.gwtopenmaps.openlayers.client.Bounds |
getExtent()
Gets the extent.
|
String |
getFieldTransect()
Gets the field transect.
|
List<LayerItem> |
getLayerItems()
Gets the layer items.
|
org.gwtopenmaps.openlayers.client.Map |
getMap()
Gets the map.
|
int |
getMapHeight()
Gets the map height.
|
MapViewInfo |
getMapViewInfo()
Gets the map view info.
|
org.gwtopenmaps.openlayers.client.MapWidget |
getMapWidget()
Gets the map widget.
|
int |
getMapWidth()
Gets the map width.
|
org.gwtopenmaps.openlayers.client.Bounds |
getMaxExtent()
Gets the max extent.
|
String |
getProjection()
Gets the projection.
|
String |
getTableTransect()
Gets the table transect.
|
void |
removeCqlFilter(LayerItem layerItem)
Removes the cql filter.
|
void |
removeDataFeature()
Removes the data feature.
|
void |
removeLayer(LayerItem layerItem)
Removes the layer.
|
void |
reproject(String proj)
Reproject.
|
void |
resetBaseLayerToOpenLayerMap()
Reset base layer to open layer map.
|
void |
setCqlFilter(LayerItem layerItem,
String filter)
Sets the cql filter.
|
void |
setFieldTransect(String fieldTransect)
Sets the field transect.
|
void |
setNewStyle(LayerItem layerItem,
String newStyle)
Sets the new style.
|
void |
setOpacity(LayerItem layerItem,
double opacity)
Sets the opacity.
|
void |
setTableTransect(String layerTransect)
Sets the table transect.
|
void |
setTransect(TransectParameters transect)
Sets the transect.
|
void |
setVisibility(LayerItem layerItem,
boolean visible)
Sets the visibility.
|
void |
setZAxisValue(LayerItem layerItem,
double intValue)
Sets the z axis value.
|
void |
updateLayersOrder()
Update layers order.
|
void |
updateSize()
Update size.
|
void |
zoomOut()
Zoom out.
|
void |
zoomToMaxExtent()
Zoom to max extent.
|
public static final String Z_AXIS_NCWMS_KEY_PARAMETER
public static final String Z_AXIS_WMS_KEY_PARAMETER
protected static final int MAX_ZINDEX
public static org.gwtopenmaps.openlayers.client.Bounds defaultBounds
public OpenLayersMap(String w, String h, int numZoomLevels, String title, OpenLayersHandler handler)
w - the wh - the hnumZoomLevels - the num zoom levelstitle - the titlehandler - the handlerpublic void activateZoomOut()
public void addLayerItems(List<LayerItem> layerItems, boolean toTop)
layerItems - the layer itemstoTop - the to toppublic void addToolBar(ToolBarPanel toolBarPanel)
toolBarPanel - the tool bar panelpublic com.google.gwt.user.client.ui.Widget getDockPanel()
public com.extjs.gxt.ui.client.widget.ContentPanel getContentPanel()
public void setOpacity(LayerItem layerItem, double opacity)
layerItem - the layer itemopacity - the opacitypublic void setZAxisValue(LayerItem layerItem, double intValue)
layerItem - the layer itemintValue - the int valuepublic void setVisibility(LayerItem layerItem, boolean visible)
layerItem - the layer itemvisible - the visiblepublic void reproject(String proj)
proj - the projpublic void zoomToMaxExtent()
public String getProjection()
public org.gwtopenmaps.openlayers.client.Bounds getMaxExtent()
public org.gwtopenmaps.openlayers.client.Bounds getExtent()
public void activateTransectDraw(boolean isActivate)
isActivate - the is activatepublic void activateClickData(boolean isActivate)
isActivate - the is activatepublic void activateDrawBoxControl(boolean isActivate)
isActivate - the is activatepublic void activateZoomIn(boolean isActivate)
isActivate - the is activatepublic void activatePan(boolean isActivate)
isActivate - the is activatepublic void removeCqlFilter(LayerItem layerItem)
layerItem - the layer itempublic void setCqlFilter(LayerItem layerItem, String filter)
layerItem - the layer itemfilter - the filterpublic void setNewStyle(LayerItem layerItem, String newStyle)
layerItem - the layer itemnewStyle - the new stylepublic void setTableTransect(String layerTransect)
layerTransect - the new table transectpublic String getTableTransect()
public void setFieldTransect(String fieldTransect)
fieldTransect - the new field transectpublic String getFieldTransect()
public void updateSize()
public int getMapWidth()
public int getMapHeight()
public org.gwtopenmaps.openlayers.client.MapWidget getMapWidget()
public void addPoint(double x,
double y)
x - the xy - the ypublic MapViewInfo getMapViewInfo()
public void updateLayersOrder()
public void removeLayer(LayerItem layerItem)
layerItem - the layer itempublic void resetBaseLayerToOpenLayerMap()
public void addBaseLayersToOpenLayerMap(List<GisViewerBaseLayerInterface> layers)
layers - the layerspublic void setTransect(TransectParameters transect)
transect - the new transectpublic void deactivateDrawBoxControl()
public void activateDrawBoxControl()
public void addLayerItemByWms(LayerItem layerItem, boolean displayInLayerSwitcher)
layerItem - the layer itemdisplayInLayerSwitcher - the display in layer switcherpublic LayerItem getActiveBaseLayer()
public void zoomOut()
public void removeDataFeature()
public org.gwtopenmaps.openlayers.client.Map getMap()
Copyright © 2016. All Rights Reserved.