declare function require ( name ) ; import Kernel from '../Kernel' ; import Utils from '../Utils' ; import MultiPointsGraphic from '../graphics/MultiPointsGraphic' ; import MarkerTextureMaterial from '../materials/MarkerTextureMaterial' ; import Service from '../Service' ; import Globe from '../Globe' ; const locationImageUrl = require ( '../images/location.png' ) ; export default class LocationGraphic extends MultiPointsGraphic { private constructor ( material , private globe ) { super ( material ) ; } setLonLat ( lon , lat ) { this . setLonlats ( [ [ lon , lat ] ] ) ; } destroy ( ) { this . globe = null ; super . destroy ( ) ; } isReady ( ) { return this . globe && this . globe . camera . isEarthFullOverlapScreen ( ) && super . isReady ( ) ; } static getInstance ( globe ) { var material = new MarkerTextureMaterial ( locationImageUrl , 24 ) ; return new LocationGraphic ( material , globe ) ; } } ;