GeoBox

new SuperMap3D.GeoBox(length, width, height)

3D cuboid geometry object class. This class is used to draw a cuboid geometric object on a 3D layer.
Name Type Description
length Number The length of the cuboid, unit: meter.
width Number The width of the cuboid, unit: meter.
height Number The height of the cuboid, unit: meter.

Members

geoHeight : Number

Get or set the height of the cuboid, unit: meter.
Default Value: 0.0

geoLength : Number

Get or set the length of the cuboid, unit: meter.
Default Value: 0.0

geoWidth : Number

Get or set the width of the cuboid, unit: meter.
Default Value: 0.0

Methods

getCenter()Number

Get the center point of the cuboid geometry object.
Returns:
The geographic coordinate value of the center point of the cuboid geometric object.

isValid()Boolean

Get whether the cuboid geometry object is valid.
Returns:
Returns true if the box geometry object is valid, false otherwise.