new SuperMap.MeasureParameters(geometry, options)
Name | Type | Description | ||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
geometry |
Object |
The geometry object to measure. |
||||||||||||||||
options |
Object |
The parameters.
|
Members
-
distanceModestring
-
Used to specify the mode of the measure is 'Geodesic' or 'Planar'.
- Default Value: "Geodesic"
Example
var param = new SuperMap.MeasureParameters(getmetry,{distanceMode:'Planar'});
geometryObject
The geometry object to measure.
The point type could be: SuperMap.Geometry.Point
|L.Point
|L.GeoJSON
|ol.geom.Point
|ol.format.GeoJSON
.
The line type could be: SuperMap.Geometry.LineString
|SuperMap.Geometry.LinearRing
|L.Polyline
|L.GeoJSON
|ol.geom.LineString
|ol.format.GeoJSON
.
The polygon type could be: SuperMap.Geometry.Polygon
|L.Polygon
|L.GeoJSON
|ol.geom.Polygon
|ol.format.GeoJSON
.
prjCoordSysstring
Used to specify the projection of the measure.
unitSuperMap.Unit
The measure unit.
- Default Value: SuperMap.Unit.METER
Methods
-
destroy()
MeasureParameters.js, line 57 -
Disposes the resource. The property that references resource is set to null.