File

projects/angular-cesium/src/lib/angular-cesium/services/drawers/label-primitive-drawer/label-primitive-drawer.service.ts

Description

This drawer is responsible for drawing labels as primitives. This drawer is more efficient than LabelDrawerService when drawing dynamic labels.

Extends

PrimitivesDrawerService

Index

Properties
Methods

Constructor

constructor(cesiumService: CesiumService)
Parameters :
Name Type Optional
cesiumService CesiumService No

Methods

add
add(cesiumProps: any, ...args: any[])
Inherited from BasicDrawerService
Parameters :
Name Type Optional
cesiumProps any No
args any[] No
Returns : any
getShow
getShow()
Inherited from PrimitivesDrawerService
Returns : boolean
init
init()
Inherited from BasicDrawerService
Returns : void
remove
remove(entity: any)
Inherited from BasicDrawerService
Parameters :
Name Type Optional
entity any No
Returns : void
removeAll
removeAll()
Inherited from BasicDrawerService
Returns : void
setShow
setShow(showValue: boolean)
Inherited from BasicDrawerService
Parameters :
Name Type Optional
showValue boolean No
Returns : void
update
update(entity: any, cesiumProps: any, ...args: any[])
Inherited from BasicDrawerService
Parameters :
Name Type Optional
entity any No
cesiumProps any No
args any[] No
Returns : void
setPropsAssigner
setPropsAssigner(assigner: Function)
Inherited from BasicDrawerService
Parameters :
Name Type Optional
assigner Function No
Returns : void

Properties

Protected _cesiumCollection
Type : any
Inherited from PrimitivesDrawerService
Private _primitiveCollectionWrap
Type : any
Inherited from PrimitivesDrawerService
Protected _propsAssigner
Type : Function
Inherited from BasicDrawerService
Private _show
Default value : true
Inherited from PrimitivesDrawerService
import { Injectable } from '@angular/core';
import { LabelCollection } from 'cesium';
import { CesiumService } from '../../cesium/cesium.service';
import { PrimitivesDrawerService } from '../primitives-drawer/primitives-drawer.service';

/**
 *  This drawer is responsible for drawing labels as primitives.
 *  This drawer is more efficient than LabelDrawerService when drawing dynamic labels.
 */
@Injectable()
export class LabelPrimitiveDrawerService extends PrimitivesDrawerService {
  constructor(cesiumService: CesiumService) {
    super(LabelCollection, cesiumService);
  }
}

results matching ""

    No results matching ""