Type Definitions
-
olx.layer.BaseOptions{Object} experimental
-
Properties:
Name Type Argument Description brightnessnumber | undefined <optional>
Brightness. Default is
0.contrastnumber | undefined <optional>
Contrast. Default is
1.huenumber | undefined <optional>
Hue. Default is
0.opacitynumber | undefined <optional>
Opacity (0, 1). Default is
1.saturationnumber | undefined <optional>
Saturation. Default is
1.visibleboolean | undefined <optional>
Visibility. Default is
true.extentol.Extent | undefined <optional>
The bounding extent for layer rendering. The layer will not be rendered outside of this extent.
minResolutionnumber | undefined <optional>
The minimum resolution (inclusive) at which this layer will be visible.
maxResolutionnumber | undefined <optional>
The maximum resolution (exclusive) below which this layer will be visible.
-
olx.layer.GroupOptions{Object} experimental
-
Properties:
Name Type Argument Description brightnessnumber | undefined <optional>
Brightness. Default is
0.contrastnumber | undefined <optional>
Contrast. Default is
1.huenumber | undefined <optional>
Hue. Default is
0.opacitynumber | undefined <optional>
Opacity (0, 1). Default is
1.saturationnumber | undefined <optional>
Saturation. Default is
1.visibleboolean | undefined <optional>
Visibility. Default is
true.extentol.Extent | undefined <optional>
The bounding extent for layer rendering. The layer will not be rendered outside of this extent.
minResolutionnumber | undefined <optional>
The minimum resolution (inclusive) at which this layer will be visible.
maxResolutionnumber | undefined <optional>
The maximum resolution (exclusive) below which this layer will be visible.
layersArray.<ol.layer.Base> | ol.Collection.<ol.layer.Base> | undefined <optional>
Child layers.
-
olx.layer.HeatmapOptions{Object} experimental
-
Properties:
Name Type Argument Description brightnessnumber | undefined <optional>
Brightness.
contrastnumber | undefined <optional>
Contrast.
huenumber | undefined <optional>
Hue.
gradientArray.<string> | undefined <optional>
The color gradient of the heatmap, specified as an array of CSS color strings. Default is
['#00f', '#0ff', '#0f0', '#ff0', '#f00'].radiusnumber | undefined <optional>
Radius size in pixels. Default is
8.blurnumber | undefined <optional>
Blur size in pixels. Default is
15.shadownumber | undefined <optional>
Shadow size in pixels. Default is
250.weightstring | function The feature attribute to use for the weight or a function that returns a weight from a feature. Weight values should range from 0 to 1 (and values outside will be clamped to that range). Default is
weight.extentol.Extent | undefined <optional>
The bounding extent for layer rendering. The layer will not be rendered outside of this extent.
minResolutionnumber | undefined <optional>
The minimum resolution (inclusive) at which this layer will be visible.
maxResolutionnumber | undefined <optional>
The maximum resolution (exclusive) below which this layer will be visible.
opacitynumber | undefined <optional>
Opacity. 0-1. Default is
1.saturationnumber | undefined <optional>
Saturation.
sourceol.source.Vector Source.
visibleboolean | undefined <optional>
Visibility. Default is
true(visible). -
olx.layer.ImageOptions{Object} experimental
-
Properties:
Name Type Argument Description brightnessnumber | undefined <optional>
Brightness. Default is
0.contrastnumber | undefined <optional>
Contrast. Default is
1.huenumber | undefined <optional>
Hue. Default is
0.opacitynumber | undefined <optional>
Opacity (0, 1). Default is
1.saturationnumber | undefined <optional>
Saturation. Default is
1.sourceol.source.Image Source for this layer.
visibleboolean | undefined <optional>
Visibility. Default is
true(visible).extentol.Extent | undefined <optional>
The bounding extent for layer rendering. The layer will not be rendered outside of this extent.
minResolutionnumber | undefined <optional>
The minimum resolution (inclusive) at which this layer will be visible.
maxResolutionnumber | undefined <optional>
The maximum resolution (exclusive) below which this layer will be visible.
-
olx.layer.LayerOptions{Object} experimental
-
Properties:
Name Type Argument Description brightnessnumber | undefined <optional>
Brightness. Default is
0.contrastnumber | undefined <optional>
Contrast. Default is
1.huenumber | undefined <optional>
Hue. Default is
0.opacitynumber | undefined <optional>
Opacity (0, 1). Default is
1.saturationnumber | undefined <optional>
Saturation. Default is
1.sourceol.source.Source | undefined <optional>
Source for this layer. If not provided to the constructor, the source can be set by calling
layer.setSource(source)after construction.visibleboolean | undefined <optional>
Visibility. Default is
true(visible).extentol.Extent | undefined <optional>
The bounding extent for layer rendering. The layer will not be rendered outside of this extent.
minResolutionnumber | undefined <optional>
The minimum resolution (inclusive) at which this layer will be visible.
maxResolutionnumber | undefined <optional>
The maximum resolution (exclusive) below which this layer will be visible.
-
olx.layer.TileOptions{Object} experimental
-
Properties:
Name Type Argument Description brightnessnumber | undefined <optional>
Brightness. Default is
0.contrastnumber | undefined <optional>
Contrast. Default is
1.huenumber | undefined <optional>
Hue. Default is
0.opacitynumber | undefined <optional>
Opacity (0, 1). Default is
1.preloadnumber | undefined <optional>
Preload. Load low-resolution tiles up to
preloadlevels. By defaultpreloadis0, which means no preloading.saturationnumber | undefined <optional>
Saturation. Default is
1.sourceol.source.Tile Source for this layer.
visibleboolean | undefined <optional>
Visibility. Default is
true(visible).extentol.Extent | undefined <optional>
The bounding extent for layer rendering. The layer will not be rendered outside of this extent.
minResolutionnumber | undefined <optional>
The minimum resolution (inclusive) at which this layer will be visible.
maxResolutionnumber | undefined <optional>
The maximum resolution (exclusive) below which this layer will be visible.
useInterimTilesOnErrorboolean | undefined <optional>
Use interim tiles on error. Default is
true. -
olx.layer.VectorOptions{Object} experimental
-
Properties:
Name Type Argument Description brightnessnumber | undefined <optional>
Brightness.
contrastnumber | undefined <optional>
Contrast.
renderOrderfunction Render order. Function to be used when sorting features before rendering. By default features are drawn in the order that they are created. Use
nullto avoid the sort, but get an undefined draw order.huenumber | undefined <optional>
Hue.
extentol.Extent | undefined <optional>
The bounding extent for layer rendering. The layer will not be rendered outside of this extent.
minResolutionnumber | undefined <optional>
The minimum resolution (inclusive) at which this layer will be visible.
maxResolutionnumber | undefined <optional>
The maximum resolution (exclusive) below which this layer will be visible.
opacitynumber | undefined <optional>
Opacity. 0-1. Default is
1.renderBuffernumber | undefined <optional>
The buffer around the viewport extent used by the renderer when getting features from the vector source. Recommended value: the size of the largest symbol or line width. Default is 100 pixels.
saturationnumber | undefined <optional>
Saturation.
sourceol.source.Vector Source.
styleol.style.Style | Array.<ol.style.Style> | ol.style.StyleFunction | undefined <optional>
Layer style. See
ol.stylefor default style which will be used if this is not defined.updateWhileAnimatingboolean | undefined <optional>
When set to
true, feature batches will be recreated during animations. This means that no vectors will be shown clipped, but the setting will have a performance impact for large amounts of vector data. When set tofalse, batches will be recreated when no animation is active. Default isfalse.visibleboolean | undefined <optional>
Visibility. Default is
true(visible).