new isolineFeature(arg) → {geo.isolineFeature}
- Description:
Create a new instance of class isolineFeature.
- Source:
Parameters:
Name | Type | Description |
---|---|---|
arg |
geo.isolineFeature.spec |
Returns:
- Type
- geo.isolineFeature
Extends
Members
idle
- Description:
Getter for the idle state. Read only.
- Source:
- Inherited From:
Properties:
Name | Type | Description |
---|---|---|
idle |
boolean |
|
Getter for the idle state. Read only.
ready
- Source:
- Inherited From:
Properties:
Name | Type | Description |
---|---|---|
ready |
boolean |
|
Methods
addChild(child) → {this}
- Description:
Add a child (or an array of children) to the object.
- Source:
- Inherited From:
Parameters:
Name | Type | Description |
---|---|---|
child |
geo.object | Array.<geo.object> | A child object or array of child objects. |
Returns:
- Type
- this
addPromise(promise) → {this}
- Description:
Add the promise here and also propagate up the scene tree.
- Source:
- Inherited From:
Parameters:
Name | Type | Description |
---|---|---|
promise |
Promise | A promise object. |
Returns:
- Type
- this
bin(valopt, actualValueopt) → {number|this}
- Description:
Get/Set bin of the feature. The bin number is used to determine the order of multiple features on the same layer. It has no effect except on the webgl renderer. A negative value hides the feature without stopping interaction with it. Otherwise, features with higher bin numbers are drawn above those with lower bin numbers. If two features have the same bin number, their order relative to one another is indeterminate and may be unstable.
- Source:
- Inherited From:
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
val |
number |
<optional> |
The new bin number. If |
actualValue |
boolean |
<optional> |
If truthy and |
Returns:
The current bin number or a reference to this
.
- Type
- number | this
boxSearch(lowerLeft, upperRight, optsopt, gcsopt) → {geo.feature.searchResult}
- Description:
Search for features contained within a rectangular region.
- Source:
- Inherited From:
Parameters:
Name | Type | Attributes | Description | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|
lowerLeft |
geo.geoPosition | Lower-left corner. |
|||||||||||
upperRight |
geo.geoPosition | Upper-right corner. |
|||||||||||
opts |
object |
<optional> |
Additional search options. Properties
|
||||||||||
gcs |
string | geo.transform | null |
<optional> |
Input gcs. |
Returns:
An object with a list of features and feature indices that are located at the specified point.
buildTime(valopt) → {geo.timestamp|this}
- Description:
Get/Set timestamp of last time a build happened.
- Source:
- Inherited From:
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
val |
geo.timestamp |
<optional> |
The new build timestamp object or |
Returns:
- Type
- geo.timestamp | this
children() → {Array.<geo.object>}
- Description:
Get an array of the child objects.
- Source:
- Inherited From:
Returns:
A copy of the array of child objects.
- Type
- Array.<geo.object>
contour(specOrPropertyopt, valueopt) → {geo.meshFeature.meshSpec|object|this}
- Description:
Get/Set mesh accessor.
- Source:
- Inherited From:
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
specOrProperty |
string | geo.meshFeature.meshSpec |
<optional> |
If |
value |
object |
<optional> |
If |
Returns:
The current mesh specification, the value of a named mesh property, or this mesh object.
- Type
- geo.meshFeature.meshSpec | object | this
data(dataopt) → {array|this}
- Description:
Get/Set the data array for the feature. This is equivalent to getting or setting the
data
style, except that setting the data array via this method updates the data timestamp, whereas setting it via the style does not.
- Source:
- Inherited From:
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
data |
array |
<optional> |
A new data array or |
Returns:
- Type
- array | this
dataTime(valopt) → {geo.timestamp|this}
- Description:
Get/Set timestamp of data change.
- Source:
- Inherited From:
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
val |
geo.timestamp |
<optional> |
The new data timestamp object or |
Returns:
- Type
- geo.timestamp | this
dependentFeatures(argopt) → {Array.<geo.feature>|this}
- Description:
Get/Set a list of dependent features. Dependent features have their visibility changed at the same time as the feature.
- Source:
- Inherited From:
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
arg |
Array.<geo.feature> |
<optional> |
If specified, the new list of dependent features. Otherwise, return the current list of dependent features. |
Returns:
The current list of dependent features or
a reference to this
.
- Type
- Array.<geo.feature> | this
draw() → {object}
- Description:
Redraw the object.
- Source:
- Overrides:
Returns:
The results of the superclass draw function.
- Type
- object
featureGcsToDisplay(c) → {geo.screenPosition}
- Description:
Convert from the feature's gcs coordinates to display coordinates.
- Source:
- Inherited From:
Parameters:
Name | Type | Description |
---|---|---|
c |
geo.geoPosition | The input coordinate to convert. |
Returns:
Display space coordinates.
- Type
- geo.screenPosition
gcs(valopt, nullable) → {string|this}
- Description:
Get/Set the projection of the feature.
- Source:
- Inherited From:
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
val |
string |
<optional> <nullable> |
If |
Returns:
A string used by geo.transform
. If the
map interface gcs is in use, that value will be returned. If the gcs
is set, return the current class instance.
- Type
- string | this
geoIsOn(event, handleropt) → {boolean}
- Description:
Report if an event handler is bound to this object.
- Source:
- Inherited From:
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
event |
string | Array.<string> | An event or list of events to check. |
|
handler |
function |
<optional> |
A function that might be bound. If
|
Returns:
true if any of the specified events are bound to the specified handler.
- Type
- boolean
geoOff(eventopt, argopt, nullable) → {this}
- Description:
Remove handlers from one event or an array of events. If no event is provided all handlers will be removed.
- Source:
- Inherited From:
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
event |
string | Array.<string> |
<optional> |
An event or a list of events from
|
arg |
function | Array.<function()> |
<optional> <nullable> |
A function or array of functions to remove from the events or a falsy value to remove all handlers from the events. |
Returns:
- Type
- this
geoOn(event, handler) → {this}
- Description:
Bind an event handler to this object.
- Source:
- Inherited From:
Parameters:
Name | Type | Description |
---|---|---|
event |
string | An event from |
handler |
function | A function that is called when |
Returns:
- Type
- this
geoOnce(event, handler) → {function}
- Description:
Bind an event handler to this object that will fire once and then deregister itself.
- Source:
- Inherited From:
Parameters:
Name | Type | Description |
---|---|---|
event |
string | An event from |
handler |
function | A function that is called when |
Returns:
The actual bound handler. This is a wrapper around the handler that was passed to the function.
- Type
- function
geoTrigger(event, args, childrenOnlyopt) → {this}
- Description:
Trigger an event (or events) on this object and call all handlers.
- Source:
- Inherited From:
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
event |
string | The event to trigger. |
|
args |
object | Arbitrary argument to pass to the handler. |
|
childrenOnly |
boolean |
<optional> |
If truthy, only propagate down the tree. |
Returns:
- Type
- this
isoline(specOrPropertyopt, valueopt) → {geo.meshFeature.meshSpec|object|this}
- Description:
Get/Set mesh accessor.
- Source:
- Inherited From:
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
specOrProperty |
string | geo.meshFeature.meshSpec |
<optional> |
If |
value |
object |
<optional> |
If |
Returns:
The current mesh specification, the value of a named mesh property, or this mesh object.
- Type
- geo.meshFeature.meshSpec | object | this
labelPositions() → {this}
- Description:
Compute the positions for labels on each line. This can be called to recompute label positions without needign to recompute isolines, for instance when the zoom level changes. Label positions are computed in the map gcs coordinates, not interface gcs coordinates, since the interface gcs may not be linear with the display space.
- Source:
Returns:
- Type
- this
lastLabelPositions() → {object}
- Description:
Get the last map position that was used for generating labels.
- Source:
Returns:
An object with the map zoom
and center
and the
labelViewport
used in generating labels. The object may have no
properties if there are no labels.
- Type
- object
layer() → {geo.layer}
- Description:
Get the layer referenced by the feature.
- Source:
- Inherited From:
Returns:
The layer associated with the feature.
- Type
- geo.layer
mesh(specOrPropertyopt, valueopt) → {geo.meshFeature.meshSpec|object|this}
- Description:
Get/Set mesh accessor.
- Source:
- Inherited From:
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
specOrProperty |
string | geo.meshFeature.meshSpec |
<optional> |
If |
value |
object |
<optional> |
If |
Returns:
The current mesh specification, the value of a named mesh property, or this mesh object.
- Type
- geo.meshFeature.meshSpec | object | this
mesh.get(key) → {object|function}
- Description:
A uniform getter that always returns a function even for constant values. If undefined input, return all the mesh values as an object.
- Source:
- Inherited From:
Parameters:
Name | Type | Description |
---|---|---|
key |
string | undefined | The name of the mesh key or |
Returns:
A function related to the key, or an object with all mesh keys, each of which is a function.
- Type
- object | function
modified() → {object}
- Description:
Update the timestamp to the next global timestamp value. Mark sub-features as modified, too.
- Source:
- Overrides:
Returns:
The results of the superclass modified function.
- Type
- object
mouseOverOrderHighestIndex(evt)
- Description:
If the selectionAPI is on, then setting
this.geoOn(geo.event.feature.mouseover_order, this.mouseOverOrderHighestIndex)
will make it so that the mouseon events prefer the highest index feature.
- Source:
- Inherited From:
Parameters:
Name | Type | Description |
---|---|---|
evt |
geo.event | The event; this should be triggered from
|
onIdle(handler) → {this}
- Description:
Bind a handler that will be called one time when all internal promises are resolved. If there are no outstanding promises, this is invoked synchronously.
- Source:
- Inherited From:
Parameters:
Name | Type | Description |
---|---|---|
handler |
function | A function taking no arguments. |
Returns:
- Type
- this
parent(argopt) → {this|geo.sceneObject}
- Description:
Get/set parent of the object.
- Source:
- Inherited From:
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
arg |
geo.sceneObject |
<optional> |
The new parent or |
Returns:
- Type
- this | geo.sceneObject
pointSearch(geo, gcsopt) → {geo.feature.searchResult}
- Description:
Search for features containing the given point. This should be defined in relevant subclasses.
- Source:
- Inherited From:
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
geo |
geo.geoPosition | Coordinate. |
|
gcs |
string | geo.transform | null |
<optional> |
Input gcs. |
Returns:
An object with a list of features and feature indices that are located at the specified point.
polygonSearch(poly, optsopt, gcsopt) → {geo.feature.searchResult}
- Description:
Search for features contained within a polygon. This should be defined in relevant subclasses.
- Source:
- Inherited From:
Parameters:
Name | Type | Attributes | Description | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|
poly |
geo.polygonObject | A polygon as an array of coordinates or an
object with |
|||||||||||
opts |
object |
<optional> |
Additional search options. Properties
|
||||||||||
gcs |
string | geo.transform | null |
<optional> |
Input gcs. |
Returns:
An object with a list of features and feature indices that are located at the specified point.
position(valopt) → {array|function|this}
- Description:
Get/Set position accessor. This is identical to getting or setting the
position
style.
- Source:
- Inherited From:
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
val |
array | function |
<optional> |
If specified, set the position style. If
|
Returns:
Either the position style or this.
- Type
- array | function | this
removeChild(child) → {this}
- Description:
Remove a child (or array of children) from the object.
- Source:
- Inherited From:
Parameters:
Name | Type | Description |
---|---|---|
child |
geo.object | Array.<geo.object> | A child object or array of child objects. |
Returns:
- Type
- this
removePromise(promise) → {this}
- Description:
Remove the promise here and also propagate up the scene tree.
- Source:
- Inherited From:
Parameters:
Name | Type | Description |
---|---|---|
promise |
Promise | A promise object. |
Returns:
- Type
- this
renderer() → {geo.renderer}
- Description:
Get the renderer used by the feature.
- Source:
- Inherited From:
Returns:
The renderer used to render the feature.
- Type
- geo.renderer
selectionAPI(argopt, directopt) → {boolean|string|this}
- Description:
Get/Set if the selection API is enabled for this feature.
- Source:
- Inherited From:
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
arg |
boolean | string |
<optional> |
|
direct |
boolean |
<optional> |
If |
Returns:
Either the selectionAPI state or the feature instance.
- Type
- boolean | string | this
style(arg1opt, arg2opt) → {object|this}
- Description:
Get/Set style used by the feature. Styles can be constant values or functions. If a function, the style is typically called with parameters such as
(dataElement, dataIndex)
or, if the specific style of a feature has a subfeature style, with(subfeatureElement, subfeatureIndex, dataElement, dataIndex)
.See the style specification
styleSpec
for available styles.
- Source:
- Inherited From:
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
arg1 |
string | object |
<optional> |
If |
arg2 |
* |
<optional> |
If |
Returns:
Either the entire style object, the value of a specific style, or the current class instance.
- Type
- object | this
style.get(keyopt) → {function|object}
- Description:
A uniform getter that always returns a function even for constant styles. This can also return all defined styles as functions in a single object.
If the style
key
is a color, the returned function will also coerce the result to be ageo.geoColorObject
.
- Source:
- Inherited From:
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
key |
string |
<optional> |
If defined, return a function for the named style. Otherwise, return an object with a function for all defined styles. |
Returns:
Either a function for the named style or an object with functions for all defined styles.
- Type
- function | object
timestamp() → {number}
- Description:
Get time.
- Source:
- Inherited From:
Returns:
The timestamp. This is 0 if the timestamp has never been modified.
- Type
- number
updateStyleFromArray(keyOrObject, styleArray, refreshopt) → {this}
- Description:
Set style(s) from array(s). For each style, the array should have one value per data item. The values are not converted or validated. Color values should be
geo.geoColorObject
s. If invalid values are given the behavior is undefined. For some feature styles, if the first entry of an array is itself an array, then each entry of the array is expected to be an array, and values are used from these subarrays. This allows a style to apply, for instance, per vertex of a data item rather than per data item.
- Source:
- Inherited From:
Parameters:
Name | Type | Attributes | Default | Description |
---|---|---|---|---|
keyOrObject |
string | object | Either the name of a single style or an object where the keys are the names of styles and the values are each arrays. |
||
styleArray |
array | If keyOrObject is a string, an array of values for the style. If keyOrObject is an object, this parameter is ignored. |
||
refresh |
boolean |
<optional> |
false
|
|
Returns:
The feature instance.
- Type
- this
updateTime(valopt) → {geo.timestamp|this}
- Description:
Get/Set timestamp of last time an update happened.
- Source:
- Inherited From:
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
val |
geo.timestamp |
<optional> |
The new update timestamp object or
|
Returns:
- Type
- geo.timestamp | this
visible(valopt, directopt) → {boolean|this}
- Description:
Get/Set the visibility of the feature.
- Source:
- Inherited From:
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
val |
boolean |
<optional> |
A boolean to change the visibility, or |
direct |
boolean |
<optional> |
If |
Returns:
Either the visibility (if getting) or the feature (if setting).
- Type
- boolean | this
(static) rotationFunction(modeopt, mapopt) → {function}
- Description:
Return a function that will rotate text labels in a specified orientation. The results of this are intended to be used as the value of the
rotation
style.
- Source:
Parameters:
Name | Type | Attributes | Default | Description |
---|---|---|---|---|
mode |
string |
<optional> |
'higher'
|
The rotation mode. |
map |
geo.map |
<optional> |
The parent map. Required for |
Returns:
A function for the rotation style.
- Type
- function
Type Definitions
isolineInfo
- Description:
Computed isoline information.
- Source:
Properties:
Name | Type | Description |
---|---|---|
values |
Array.<geo.isolineFeature.valueEntry> | The values used to produce the isolines. |
mesh |
geo.meshFeature.meshInfo | The normalized mesh. |
lines |
Array.<array> | An array of arrays. Each entry is a list of
vertices that also have a |
hasLabels |
boolean |
|
Computed isoline information.
Type:
- object
isolineSpec
- Description:
Isoline specification. All of these properties can be functions, which get passed the
geo.meshFeature.meshInfo
object.
- Source:
Properties:
Name | Type | Attributes | Default | Description |
---|---|---|---|---|
min |
number |
<optional> |
Minimum isoline value. If unspecified, taken from
the computed minimum of the |
|
max |
number |
<optional> |
Maximum isoline value. If unspecified, taken from
the computed maximum of the |
|
count |
number |
<optional> |
15
|
Approximate number of isolines shown through
the value range. Used if |
autofit |
boolean |
<optional> |
true
|
If |
spacing |
number |
<optional> |
Distance in value units between isolines.
Used if specified and |
|
values |
Array.<number> | Array.<geo.isolineFeature.valueEntry> |
<optional> |
An array of explicit values for isolines. |
|
levels |
Array.<number> |
<optional> |
[5, 5]
|
If |
label |
boolean | function |
<optional> |
Truthy if a label should be shown for a
isoline value. If a function, this is called with
|
|
labelText |
string | function |
<optional> |
Text for a label. If a function,
this is called with |
|
labelSpacing |
number | function |
<optional> |
200
|
Minimum distance between
labels on an isoline in screen pixels. If a function, this is called
with |
labelOffset |
number | function |
<optional> |
0
|
Offset for labels along an
isoline relative to where they would be placed by default on a scale of
[-0.5, 0.5]. +/- 1 would move the text to the next repeated occurrence
of the label. If a function, this is called with
|
labelViewport |
number | function |
<optional> |
10000
|
If the main position of a label would be further than this many pixels from the current viewport, don't create it. This prevents creating an excessive number of labels when zoomed in, but requires regenerating labels occasionally when panning. If <= 0, all labels are generated regardless of location. |
labelAutoUpdate |
boolean | function |
<optional> |
true
|
If truthy, when the map
is panned (including zoom, rotation, etc.), periodically regenerate
labels. This uses an internal function that has a threshold based on a
fixed change in zoom, size, and other parameters. Set |
elements |
Array.<number> | Array.<Array.<number>> |
<optional> |
If specified, a list of
indices into the data array that form elements. If this is an array of
arrays, each subarray must have at least either 3 values for triangular
elements or 4 values for square elements. If this is a single array,
the data indices are of all elements are packed one after another and
the |
|
elementPacking |
string |
<optional> |
'auto'
|
If |
gridWidth |
number |
<optional> |
The number of data columns in the grid. If
this is not specified and |
|
gridHeight |
number |
<optional> |
The number of data rows in the grid. If
this is not specified and |
|
x0 |
number |
<optional> |
The x coordinate of the 0th data point. If |
|
y0 |
number |
<optional> |
The y coordinate of the 0th data point. If |
|
dx |
number |
<optional> |
The distance in the x direction between the 0th and
1st data point. This may be positive or negative. If 0, |
|
dy |
number |
<optional> |
The distance in the y direction between the 0th and
|
|
wrapLongitude |
boolean |
<optional> |
true
|
If truthy and |
Isoline specification. All of these properties can be functions, which get
passed the geo.meshFeature.meshInfo
object.
Type:
spec
- Description:
Isoline feature specification.
- Source:
Properties:
Name | Type | Attributes | Default | Description |
---|---|---|---|---|
data |
Array.<object> |
<optional> |
[]
|
An array of arbitrary objects used to construct the feature. |
style |
geo.isolineFeature.styleSpec |
<optional> |
An object that contains style values for the feature. |
|
isoline |
geo.isolineFeature.isolineSpec |
<optional> |
The isoline specification for the feature. |
Isoline feature specification.
Type:
styleSpec
- Description:
Style specification for an isoline feature. Extends
geo.lineFeasture.styleSpec
andgeo.textFeasture.styleSpec
.
- Source:
Properties:
Name | Type | Attributes | Default | Description |
---|---|---|---|---|
position |
geo.geoPosition | function |
<optional> |
data
|
The position of each
data element. This defaults to just using |
value |
number | function |
<optional> |
data.z
|
The value of each data element.
This defaults to the |
strokeColor |
geo.geoColor | function |
<optional> |
'black'
|
Color to stroke each line. |
strokeWidth |
number | function |
<optional> |
The weight of the line stroke in pixels. This defaults to the line value's level + 0.5. |
|
rotateWithMap |
boolean | function |
<optional> |
true
|
Rotate label text when the map rotates. |
rotation |
number | function |
<optional> |
Text rotation in radians. This
defaults to the label oriented so that top of the text is toward the
higher value. There is a utility function that can be used for common
rotation preferences. See |
|
fontSize |
string | function |
<optional> |
'12px'
|
The font size. |
textStrokeColor |
geo.geoColor | function |
<optional> |
'white'
|
Text stroke color. This adds contrast between the label and the isoline. |
textStrokeWidth |
geo.geoColor | function |
<optional> |
2
|
Text stroke width in pixels. |
strokeOpacity |
number | function |
<optional> |
Opacity for each line stroke. The opacity can vary by point. Opacity is on a [0-1] scale. |
|
strokeOffset |
number | function |
<optional> |
This is a value from -1 (left) to 1 (right), with 0 being centered. This can vary by point. |
|
lineCap |
string | function |
<optional> |
'butt'
|
One of 'butt', 'square', or 'round'. This can vary by point. |
lineJoin |
string | function |
<optional> |
'miter'
|
One of 'miter', 'bevel', 'round', or 'miter-clip'. This can vary by point. |
closed |
boolean | function |
<optional> |
false
|
If true and the renderer
supports it, connect the first and last points of a line if the line has
more than two points. This applies per line (if a function, it is called
with |
miterLimit |
number | function |
<optional> |
10
|
For lines of more than two
segments that are mitered, if the miter length exceeds the |
uniformLine |
boolean | string | function |
<optional> |
false
|
Boolean indicating
if each line has a uniform style (uniform stroke color, opacity, and
width). Can vary by line. A value of |
antialiasing |
number | function |
<optional> |
Antialiasing distance in pixels. Values must be non-negative. A value greater than 1 will produce a visible gradient. This is a single value that applies to all lines. |
|
debug |
string | function |
<optional> |
If 'debug', render lines in debug mode. This is a single value that applies to all lines. |
|
origin |
Array.<number> | function |
<optional> |
Origin in map gcs coordinates used for to ensure high precision drawing in this location. When called as a function, this is passed the vertex positions as a single continuous array in map gcs coordinates. It defaults to the first line's first vertex's position. |
|
visible |
boolean | function |
<optional> |
true
|
If falsy, don't show this data element. |
font |
string | function |
<optional> |
A css font specification. This is of the
form |
|
fontStyle |
string | function |
<optional> |
'normal'
|
The font style. One of
|
fontVariant |
string | function |
<optional> |
'normal'
|
The font variant. This
can have values such as |
fontWeight |
string | function |
<optional> |
'normal'
|
The font weight. This may
be a numeric value where 400 is normal and 700 is bold, or a string such
as |
fontStretch |
string | function |
<optional> |
'normal'
|
The font stretch, such as
|
lineHeight |
string | function |
<optional> |
'normal'
|
The font line height. |
fontFamily |
string | function |
<optional> |
The font family. |
|
textAlign |
string | function |
<optional> |
'center'
|
The horizontal text
alignment. One of |
textBaseline |
string | function |
<optional> |
'middle'
|
The vertical text
alignment. One of |
color |
geo.geoColor | function |
<optional> |
'black'
|
Text color. May include opacity. |
textOpacity |
number | function |
<optional> |
1
|
The opacity of the text. If the color includes opacity, this is combined with that value. |
textScaled |
number | function |
<optional> |
If defined, the text is scaled when the map zooms and this is the basis zoom for the fontSize. |
|
offset |
geo.screenPosition | function |
<optional> |
Offset from the default position for the text. This is applied before rotation. |
|
shadowColor |
geo.geoColor | function |
<optional> |
'black'
|
Text shadow color. May include opacity. |
shadowOffset |
geo.screenPosition | function |
<optional> |
Offset for a text shadow. This is applied before rotation. |
|
shadowBlur |
number | null | function |
<optional> |
If not null, add a text shadow with this much blur. |
|
shadowRotate |
boolean | function |
<optional> |
false
|
If truthy, rotate the
shadow offset based on the text rotation (the |
renderThreshold |
number | function |
<optional> |
If this is a positive number, text elements may not be rendered if their base position (before offset and font effects are applied) is more than this distance in pixels outside of the current viewport. If it is known that such text elements cannot affect the current viewport, setting this can speed up rendering. This is computed once for the whole feature. |
Style specification for an isoline feature. Extends
geo.lineFeasture.styleSpec
and geo.textFeasture.styleSpec
.
Type:
valueEntry
- Description:
Isoline value entry.
- Source:
Properties:
Name | Type | Attributes | Description |
---|---|---|---|
value |
number | The value of the isoline. |
|
level |
number | The level of the isoline. |
|
position |
number |
<optional> |
An index of the position of the isoline. For evenly spaced or autofit values, this is the value modulo the spacing. Otherwise, this is the index position within the list of values. This is computed when calculating isolines. |
label |
string |
<optional> |
The label to display on this value. This is
computed from the |
Isoline value entry.
Type:
- object