public static class Editor.Parameters
extends com.google.gwt.core.client.JavaScriptObject
Modifier and Type | Method and Description |
---|---|
void |
addPolygonDrawTool(Editor.CreateTools polygonDrawTool) |
void |
addPolylineDrawTool(Editor.CreateTools polylineDrawTool) |
static Editor.Parameters |
create()
Create a new settings object that defines the cababilites of the widget.
|
void |
setGeometryService(java.lang.String geometryService)
Reference to the geometry service.
|
void |
setLayerInfos(FeatureLayer featureLayer,
boolean showObjectID,
boolean showGlobalID,
java.lang.String[] htmlFields)
Feature layer information
|
void |
setMap(MapWidget map)
Reference to the map.
|
void |
setTemplatePicker(TemplatePicker templatePicker)
Use this option if you want to modify the appearance of the template picker, for example
set the number of rows and columns.
|
void |
setToolbarOptions(boolean mergeVisible,
boolean cutVisible,
boolean reshapeVisible)
Specify the tools to include on the toolbar.
|
void |
setToolbarVisible(boolean isVisible)
If true display the editing toolbar.
|
public static Editor.Parameters create()
public final void setMap(MapWidget map)
map
- public final void setTemplatePicker(TemplatePicker templatePicker)
templatePicker
- - Reference to the TemplatePicker.public final void setGeometryService(java.lang.String geometryService)
geometryService
- public final void setToolbarVisible(boolean isVisible)
isVisible
- public final void addPolylineDrawTool(Editor.CreateTools polylineDrawTool)
polylineDrawTool
- - Specify the polyline draw tools to include on the toolbar.
Only applicable when toolbarVisible is true.public final void addPolygonDrawTool(Editor.CreateTools polygonDrawTool)
polygonDrawTool
- - Specify the polygon draw tools to include on the toolbar.
Only applicable when toolbarVisible is true.public final void setToolbarOptions(boolean mergeVisible, boolean cutVisible, boolean reshapeVisible)
mergeVisible
- - If true show the merge tool.cutVisible
- - If true show the cut tool.reshapeVisible
- - If true show the reshape tool.public final void setLayerInfos(FeatureLayer featureLayer, boolean showObjectID, boolean showGlobalID, java.lang.String[] htmlFields)
featureLayer
- - Reference to the feature layer.showObjectID
- - Default is false. When true display the ObjectID field in the attribute inspector.showGlobalID
- - Default is false. When true display the GlobalID field in the attribute inspector.htmlFields
- - Specify which fields to display as a rich text editor.