Description
Class added v2.0. Sets the offset distance, type and other parameters for the
Samples
Search for samples that use this class.
Class hierarchy
esri.tasks.OffsetParameters
Constructor
Properties
| bevelRatio |
Number
|
The bevelRatio is multiplied by the offset distance and the result determines how far a mitered offset intersection can be located before it is bevelled. When mitered is specified, the value set for bevelRatio is ignored and 10 is used internally. If bevelled is specified 1.1 will be used if no value is set for bevelRatio. The bevelRatio is ignored when rounded is specified. |
| geomtries |
Geometry[]
|
The array of geomtries to be offset. |
| offsetDistance |
Number
|
Specifies the distance for constructing an offset based on the input geometries. If the offsetDistance parameter is positive the constructed offset will be on the right side of the curve. Left side offsets are constructed with negative values. |
| offsetHow |
String
|
Options that determine how the ends intersect. |
| offsetUnit |
esri.tasks.GeometryService Constant
|
The offset distance unit. For a list of valid units see esriSRUnitType constants or esriSRUnit2Type constants. |
Constructor Detail
esri.tasks.OffsetParameters()
Creates a new OffsetParameters object. The constructor takes no parameters
Code snippets:
var offsetParams = new esri.tasks.OffsetParameters();
Properties Detail
The bevelRatio is multiplied by the offset distance and the result determines how far a mitered offset intersection can be located before it is bevelled. When mitered is specified, the value set for bevelRatio is ignored and 10 is used internally. If bevelled is specified 1.1 will be used if no value is set for bevelRatio. The bevelRatio is ignored when rounded is specified.
Code snippets:
offsetParams.offsetHow = "esriGeometryOffsetBevelled";
offsetParams.bevelRatio = 2;
The array of geomtries to be offset.
Specifies the distance for constructing an offset based on the input geometries. If the offsetDistance parameter is positive the constructed offset will be on the right side of the curve. Left side offsets are constructed with negative values.
Set to one of the following options:
|
esriGeometryOffsetBevelled
|
Squares off the corner after a given ratio distance.
|
|
esriGeometryOffsetMitered
|
Attempts to allow extended offsets to naturally intersect. if the intersection occurs too far from a corner, the corner will be bevelled off at a fixed distance.
|
|
esriConstructOffsetRounded
|
Rounds the corner between extended offsets.
|