<< Click to Display Table of Contents >>

 

new sg.geometry.MultiPart()

 

 

Description

create a multi-part object.

 

Position

Geometry.js

 

 

Properties

 

Properties

Type

Description

extent

sg.geometry.Extent

Geometry extent

type

String

Geometry type

parts

Array.<sg.geometry.Geometry>

Array of geometries

 

 

Methods

 

Methods

Type

Description

addPart(part)

sg.geometry.Geometry

add geometries to the collection

Name

Type

Description

part

sg.geometry.Geometry

The geometry object

getExtent()

Returns:

sg.geometry.Extent

return geometry extent object.

Returns:

Type

Description

sg.geometry.Extent

The extent object

update(updatePart)

None

Whether to update other geometry parts

Name

Type

Description

updatepart

Boolean

T: Update

F: Do not update.

Clone()        

Returns:

sg.geometry.MultiPart

Copy the multi-part geomtery object

Returns:

Type

Description

sg.geometry.MultiPart

multi-part geomtery object

forEachVertex(callback)

function

Get each verttex of a multi-part geomtery object

 

callback(context)

{

 //Vertex

 Context.point;

 //Vertex index

 Context.pointIndex;

}

 

 


©2015 Supergeo Technologies Inc.