Skip to content

Latest commit

 

History

History
25 lines (23 loc) · 4.5 KB

File metadata and controls

25 lines (23 loc) · 4.5 KB

OLEditor

Desktop-like UI for the OpenLayers 3+ web mapping library.

API documentation

Class Options and methods
ol.Editor
extends ol.Map
selectedFeatures: ol.Collection

ol.control.LayerManager getLayerManager(),
null setLayerManager(ol.control.LayerManager),
ol.control.AttributeManager getAttributeManager(),
null setAttributeManager(ol.control.AttributeManager),
null sendMessage(String)
ol.control.AttributeManager
extends ol.control.Control
target: DOM element,
className: String,
...
ol.control.EditingControls
extends ol.control.Control
target: DOM element,
className: String,
drawpoint: ol.control.Interaction,
drawline: ol.control.Interaction,
drawPolygon: ol.control.Interaction,
dragFeature: ol.control.Interaction,
modifyFeature: ol.control.Interaction,
removeFeature: ol.control.Interaction

and each has #Label, #TipLabel, #ClassName and #Interaction
ol.control.Geolocate
extends ol.control.Control
target: DOM element,
className: String,
label: String,
tipLabel: String,
active: bool,
accuracyFeature: ol.Feature,
positionFeature: ol.Feature,
positionStyle: ol.style.Style,
featuresOverlay: ol.layer.Vector
ol.control.Interaction
extends ol.control.Control
target: DOM element,
className: String,
label: String,
tipLabel: String,
singleButton: bool,
active: bool,
type: String:toggle,
interaction: ol.interaction.Interaction,
destroyFunction: function(evt)
ol.control.LayerControls
extends ol.control.Control
target: DOM element,
className: String,
#ClassName: String,
#Label: String,
#TipLabel: String

# can be addVector, addRaster, createVector and deleteLayer
ol.control.LayerManager
extends ol.control.Control
target: DOM element,
className: String,
...
ol.control.Message
extends ol.control.Control
target: DOM element,
className: String,
label: String,
tipLabel: String,
timeout: int
ol.control.Print
extends ol.control.Control
target: DOM element,
className: String,
label: String,
tipLabel: String
ol.control.Projection
extends ol.control.Control
require Proj4.js
target: DOM element,
className: String,
tipLabel: String,
projections: ol.ProjectionLike Array

null addProjection(ol.ProjectionLike),
null changeLayerProjection(layer: ol.layer.Group, oldproj: ol.ProjectionLike, newproj: ol.ProjectionLike)
ol.control.Rotation
extends ol.control.Control
target: DOM element,
className: String,
tipLabel: String
ol.control.SelectionControls
extends ol.control.Control
target: DOM element,
className: String,
selectedFeatures: ol.Collection,
selectSingle: ol.control.Interaction,
selectMulti: ol.control.Interaction,
remove: ol.control.Interaction,

and each has #Label, #TipLabel and #Interaction
ol.control.ShareMap
extends ol.control.Control
target: DOM element,
className: String,
label: String,
tipLabel: String,
precision: int,
autoUpdate: bool,
projection: ol.ProjectionLike
ol.control.ZoomHistory
extends ol.control.Control
target: DOM element,
className: String,
#ClassName: String,
#Label: String,
#TipLabel: String,
maxSize: int

# can be next and back
ol.control.ZoomTo
extends ol.control.Control
target: DOM element,
className: String,
label: String,
tipLabel: String,
extentFunction: function
ol.control.ZoomToLayer
extends ol.control.ZoomTo
target: DOM element,
className: String,
label: String,
tipLabel: String
ol.control.ZoomToSelection
extends ol.control.ZoomTo
target: DOM element,
className: String,
label: String,
tipLabel: String
ol.interaction.SelectBox
extends ol.interaction.DragBox
features: ol.Collection,
layers: ol.layer.Group,
styleFunc: function(startpx, endpx)