File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11import GlobeScene from '../src/components/scene'
22import Marker from '../src/components/marker'
33import Bar from '../src/components/bar'
4- import { point } from '@turf/helpers' ;
4+ import { point } from '@turf/helpers'
55
66const container = document . querySelector ( '#globe-container' ) as HTMLCanvasElement
77
@@ -25,7 +25,7 @@ const bar = new Bar({
2525} )
2626
2727const marker = new Marker ( {
28- location : point ( [ 52.3676 , 4.9041 ] )
28+ location : point ( [ 52.3676 , 4.9041 ] ) ,
2929} )
3030
3131const bar2 = new Bar ( {
@@ -34,7 +34,7 @@ const bar2 = new Bar({
3434} )
3535
3636const marker2 = new Marker ( {
37- location : point ( [ 59.9139 , 10.7522 ] )
37+ location : point ( [ 59.9139 , 10.7522 ] ) ,
3838} )
3939
4040globe . addMarkers ( [ marker , marker2 ] )
Original file line number Diff line number Diff line change @@ -38,9 +38,6 @@ export default class Marker {
3838
3939 const [ lng , lat ] = this . config . location . geometry . coordinates
4040
41- console . log ( lng ) ;
42- console . log ( lat ) ;
43-
4441 if ( ! lng || ! lat ) throw Error ( 'Invalid coordinates.' )
4542
4643 const position = calculateVec3FromLatLon ( lng , lat , 600 )
You can’t perform that action at this time.
0 commit comments