Classes
Methods
-
<static> destroy(explorer)
-
Destroy all w2ui and openlayer resources. The explorer is no longer valid after calling this method.
Parameters:
Name Type Description explorerolexp.ExplorerAPI Explorer API object
Type Definitions
-
ExplorerAPI
-
The objects exposed by the Explorer API
Type:
- object
Properties:
Name Type Description detailsexternal:jQuery.fn.w2grid Layer details panels. Display the details of the later that is currently selected in the outline sidebar.
layoutexternal:jQuery.fn.w2layout Explorer layout object. Contains the map, toolbar, and navigation panels. Can maintain up to 3 additional panels that are stretchable and resizable.
managerolexp.manager.ManagerAPI Explorer item manager
mapexternal:ol.Map ol3 map object used to add layers, overlays, controls, etc.
navigationexternal:jQuery.fn.w2layout Layer manager navigation panel. The panel that contains the outline sidebar and detail grid.
optionsolexp.ExplorerOptions Explorer options object that contains the options argument passed to the explorer constructor.
outlineexternal:jQuery.fn.w2sidebar Layer manager outline panel that allows the user to manage the ordering and properties of the map layers.
toolbarexternal:jQuery.fn.w2toolbar Explorer toolbar that contains map and layers controls.
-
ExplorerOptions
-
Explorer constructor options to override default behavior.
Type:
- object
Properties:
Name Type Argument Description controlsobject <optional>
Enables built-in toolbar controls
Properties
Name Type Argument Default Description editsettingsboolean <optional>
true Enable settings editor control
exportmapboolean <optional>
true Enable map exporting control
graticuleboolean <optional>
true Enable graticule control
layercontrolboolean <optional>
true Enable Layer Control control
layermanagerboolean <optional>
true Enable Layer Manager control
layermenuboolean <optional>
true Enable Layer Menu control
measureboolean <optional>
true Enable measurement control
toolbarhideboolean <optional>
true Enable toolbar hide control
detailsexternal:jQuery.fn.w2layout.panels <optional>
Options for details panel. Below are only those different from w2ui defaults.
Properties
Name Type Argument Default Description hiddenboolean <optional>
true Visibility
resizableboolean <optional>
true Resizability
sizestring <optional>
'25%' Size
typestring <optional>
'preview' Type of panel
layersexternal:jQuery.fn.w2sidebar.nodes <optional>
Options for layers node. Below are only those different from w2ui defaults.
Properties
Name Type Argument Default Description expandedboolean <optional>
true Indicate if initially expanded
groupboolean <optional>
true Indicate if a group
imgstring <optional>
'icon-folder' CSS selector of node image
textstring <optional>
'Layers' Node text
mapexternal:jQuery.fn.w2layout.panels <optional>
Options for map panel. Below are only those different from w2ui defaults.
Properties
Name Type Argument Default Description typestring <optional>
'main' Type of panel
navigationexternal:jQuery.fn.w2layout.panels <optional>
Options for navigation panel. Below are only those different from w2ui defaults.
Properties
Name Type Argument Default Description resizableboolean <optional>
true Resizability
sizestring <optional>
'15%' Size
typestring <optional>
'left' Type of panel
olcontrolsobject <optional>
Enables OpenLayers map controls
Properties
Name Type Argument Default Description fullscreenboolean <optional>
true Enable full screen
mousepositionboolean <optional>
true Enable mouse position
overviewmapboolean <optional>
true Enable overview map
rotateboolean <optional>
true Enable rotation
scalelineboolean <optional>
true Enable scale line
zoomboolean <optional>
true Enable zoom
zoomsliderboolean <optional>
true Enable zoom slider
zoomtoextentboolean <optional>
true Enable zoom to extent
olinteractionsobject <optional>
Enables OpenLayers map interactions
Properties
Name Type Argument Default Description draganddropboolean <optional>
true Enable drag-n-drop
olmapexternal:ol.Map <optional>
Options for ol3 map. Below are only those different from ol3 defaults.
Properties
Name Type Argument Default Description controlsarray <optional>
[] Controls initially added to the map.
viewexternal:ol.View | undefined <optional>
new ol.View({center: [0,0], zoom: 4}) The map's initial view.
outlineexternal:jQuery.fn.w2layout.panels <optional>
Options for outline panel. Below are only those different from w2ui defaults.
Properties
Name Type Argument Default Description typestring <optional>
'main' Type of panel
overlaysexternal:jQuery.fn.w2sidebar.nodes <optional>
Options for overlays node. Below are only those different from w2ui defaults.
Properties
Name Type Argument Default Description expandedboolean <optional>
true Indicate if initially expanded
groupboolean <optional>
true Indicate if a group
imgstring <optional>
'icon-folder' CSS selector of node image
textstring <optional>
'Overlays' Node text
settingsolexp.ExplorerSettings <optional>
Advanced settings for customizing various controls and menus look and feel.
toolbarexternal:jQuery.fn.w2layout.panels <optional>
Options for toolbar panel. Below are only those different from w2ui defaults.
Properties
Name Type Argument Default Description sizestring <optional>
'40' Size
stylestring <optional>
'padding: 5px;' Additional CSS style
typestring <optional>
'top' Type of panel
-
ExplorerSettings
-
Advanced settings for customizing various controls and menus look and feel.
Type:
- object
Properties:
Name Type Argument Description controlobject <optional>
olexp.control settings
Properties
Name Type Argument Description EditSettingsobject <optional>
Edit Settings control settings
Properties
Name Type Argument Default Description formexternal:jQuery.fn.w2form.properties <optional>
w2form properties
hintstring <optional>
'Edit Controls' Control button hover hint text
popupexternal:jQuery.fn.w2popup.properties <optional>
w2popup properties
spannumber <optional>
6 Span size of control fields
ExportMapobject <optional>
Export Map control settings
Properties
Name Type Argument Default Description filenamestring <optional>
'map.png' Default filename of saved map
hintstring <optional>
'Export map' Control button hover hint text
Graticuleobject <optional>
Graticule control settings
Properties
Name Type Argument Default Description enableboolean <optional>
false Enable grid line display
formexternal:jQuery.fn.w2form.properties <optional>
w2form properties
hintstring <optional>
'Edit Controls' Control button hover hint text
optionsobject <optional>
ol.style.Stroke options
popupexternal:jQuery.fn.w2popup.properties <optional>
w2popup properties
spannumber <optional>
6 Span size of control fields
LayerControlTileobject <optional>
Layer Control Tile control settings
Properties
Name Type Argument Default Description formexternal:jQuery.fn.w2form.properties <optional>
w2form properties
hintstring <optional>
'Edit Controls' Control button hover hint text
popupexternal:jQuery.fn.w2popup.properties <optional>
w2popup properties
spannumber <optional>
6 Span size of control fields
LayerControlVectorobject <optional>
Layer Control Vector control settings
Properties
Name Type Argument Default Description formexternal:jQuery.fn.w2form.properties <optional>
w2form properties
hintstring <optional>
'Edit Controls' Control button hover hint text
popupexternal:jQuery.fn.w2popup.properties <optional>
w2popup properties
spannumber <optional>
6 Span size of control fields
LayerManagerobject <optional>
Layer Manager control settings
Properties
Name Type Argument Default Description hintDetailsHidestring <optional>
'Hide details' Hide details control button hover hint text
hintDetailsShowstring <optional>
'Show details' Show details control button hover hint text
hintMoveDownstring <optional>
'Move item down' Move item down control button hover hint text
hintMoveUpstring <optional>
'Move item up' Move item up control button hover hint text
hintOutlineHidestring <optional>
'Hide outline' Hide outline control button hover hint text
hintOutlineShowstring <optional>
'Show outline' Show outline control button hover hint text
LayerMenuobject <optional>
Layer Menu control settings
Properties
Name Type Argument Default Description arrowstring <optional>
true Display arrow for drop down menu
hintstring <optional>
'Item Properties' Control button hover hint text
textstring <optional>
'' Button text
Measurementobject <optional>
Measurement control settings
Properties
Name Type Argument Default Description hintAreastring <optional>
'Measure area' Area measurement control button hover hint text
hintLengthstring <optional>
'Measure length' Length measurement control button hover hint text
ToolbarHideobject <optional>
Toolbar Hide control settings
Properties
Name Type Argument Default Description hintstring <optional>
'Hide toolbar' Hide toolbar control button hover hint text
measureobject <optional>
olexp.measure settings
Properties
Name Type Argument Description Toolobject <optional>
Properties menu settings
Properties
Name Type Argument Default Description continueLineMsgstring <optional>
'Click to continue drawing the line' Message displayed to continue drawing line
continuePolygonMsgstring <optional>
'Click to continue drawing' Message displayed to continue drawing polygon
helpTooltipOffsetArray <optional>
[20, 0] Pixel offset of help tooltip
helpTooltipPositioningstring <optional>
'center-left' Position of help tooltip
measuredStyleexternal:ol.style.Style <optional>
Style of a measurement vector after completed.
measuredStyleexternal:ol.style.Style <optional>
Style of a measurement vector during drawing.
measureTooltipOffsetArray <optional>
[0, -20] Pixel offset of measuring tooltip
measureTooltipPositioningstring <optional>
'bottom-center' Position of measuring tooltip
messageStartstring <optional>
'Click to start. Double click to stop.' Message to display to start drawing.
menuobject <optional>
olexp.menu settings
Properties
Name Type Argument Description Propertiesobject <optional>
Properties menu settings
Properties
Name Type Argument Default Description fieldnumber <optional>
35 Field size
formexternal:jQuery.fn.w2form.properties <optional>
w2form properties
popupexternal:jQuery.fn.w2popup.properties <optional>
w2popup properties
spannumber <optional>
4 Span size of control fields
textstring <optional>
'Properties' Context menu text
Removeobject <optional>
Remove menu settings
Properties
Name Type Argument Default Description textstring <optional>
'Remove' Context menu text
Zoomobject <optional>
Zoom menu settings
Properties
Name Type Argument Default Description textstring <optional>
'Zoom' Context menu text
olobject <optional>
olexp.ol settings
Properties
Name Type Argument Description ToolbarShowobject <optional>
ol3 map control settings
Properties
Name Type Argument Default Description htmlstring <optional>
'T' HTML to display in control
titlestring <optional>
'Show toolbar' Control hover hint
utilobject <optional>
olexp.util settings
Properties
Name Type Argument Description clusterfunction <optional>
Function that returns ol.style.Style for a given cluster size.
Pointexternal:ol.style.Style <optional>
Point style
LineStringexternal:ol.style.Style <optional>
LineString style
Polygonexternal:ol.style.Style <optional>
Polygon style
MultiPointexternal:ol.style.Style <optional>
MultiPoint style
MultiLineStringexternal:ol.style.Style <optional>
MultiLineString style
MultiPolygonexternal:ol.style.Style <optional>
MultiPolygon style