gem.d3Scene. MarkerCollectionRef

new MarkerCollectionRef()

MarkerCollectionRef class

Methods

clear()

Clear MarkerCollection

createMarker(markerId, coordinates, radius) → {gem.d3Scene.Marker}

Create a marker with the specifed id

Parameters:
NameTypeDescription
markerIdnumber

marker id

coordinatesgem.core.Coordinates

coordinates of the marker

radiusnumber

radius of the marker

Returns:
  • Created marker
Type: 
gem.d3Scene.Marker

getArea() → {gem.core.BoundingBox}

Get Bounding Box (WGS coordinates) of the MarkerCollection

Returns:
Type: 
gem.core.BoundingBox

getGroupHeadItem(nId) → {gem.d3Scene.MarkerRef}

Gets the group head marker for the given marker id

Parameters:
NameTypeDescription
nIdstring

marker id

Returns:
  • If group head info is not available the function will return a reference to the queried marker
Type: 
gem.d3Scene.MarkerRef

getMarkerAt(nId) → {gem.d3Scene.MarkerRef}

Get the marker with the id

Parameters:
NameTypeDescription
nIdnumber

marker id

Returns:
  • marker reference
Type: 
gem.d3Scene.MarkerRef

getName() → {string}

Get the name of the MarkerCollection

Returns:
Type: 
string

getType() → {gem.d3Scene.EMarkerType}

Returns MarkerCollection type

removeMarker(nId)

Remove the marker with the id

Parameters:
NameTypeDescription
nIdnumber

marker id

size() → {number}

Get size

Returns:
Type: 
number

gem.d3Scene. MarkerCollectionRef

new MarkerCollectionRef()

MarkerCollectionRef class

Methods

clear()

Clear MarkerCollection

createMarker(markerId, coordinates, radius) → {gem.d3Scene.Marker}

Create a marker with the specifed id

Parameters:
NameTypeDescription
markerIdnumber

marker id

coordinatesgem.core.Coordinates

coordinates of the marker

radiusnumber

radius of the marker

Returns:
  • Created marker
Type: 
gem.d3Scene.Marker

getArea() → {gem.core.BoundingBox}

Get Bounding Box (WGS coordinates) of the MarkerCollection

Returns:
Type: 
gem.core.BoundingBox

getGroupHeadItem(nId) → {gem.d3Scene.MarkerRef}

Gets the group head marker for the given marker id

Parameters:
NameTypeDescription
nIdstring

marker id

Returns:
  • If group head info is not available the function will return a reference to the queried marker
Type: 
gem.d3Scene.MarkerRef

getMarkerAt(nId) → {gem.d3Scene.MarkerRef}

Get the marker with the id

Parameters:
NameTypeDescription
nIdnumber

marker id

Returns:
  • marker reference
Type: 
gem.d3Scene.MarkerRef

getName() → {string}

Get the name of the MarkerCollection

Returns:
Type: 
string

getType() → {gem.d3Scene.EMarkerType}

Returns MarkerCollection type

removeMarker(nId)

Remove the marker with the id

Parameters:
NameTypeDescription
nIdnumber

marker id

size() → {number}

Get size

Returns:
Type: 
number