SphereMap.GeoVectorLayer

new GeoVectorLayer(options)

Layer for vector object defined by geo-coordinates.

Parameters:
Name Type Description
options Object
Source:
  • GeoVectorLayer.js, line 32

Members

Methods

addGeoLine(geoCoords, data, id, style)

Add line defined by geo-coordinates.

Parameters:
Name Type Description
geoCoords Array.<SphereMap.Vector3>
data Object
id string
style smx.LineSimpleStyle
Source:
  • GeoVectorLayer.js, line 65

addGeoPoint(geoCoord, data, id, style)

Add point defined by geo-coordinate.

Parameters:
Name Type Description
geoCoord SphereMap.Vector3
data Object
id string
style smx.PointStyle
Source:
  • GeoVectorLayer.js, line 94

addGeoPolygon(geoCoords, data, id, style)

Add polygon defined by geo-coordinates.

Parameters:
Name Type Description
geoCoords Array.<SphereMap.Vector3>
data Object
id string
style smx.PolygonSimpleStyle
Source:
  • GeoVectorLayer.js, line 123

removeObject(id)

Remove vector object from layer. Object is identified by its ID.

Parameters:
Name Type Description
id string

ID of removed object

Source:
  • GeoVectorLayer.js, line 261

removeObjects()

Remove all vector objects from layer.

Source:
  • GeoVectorLayer.js, line 278