[wip] Add option to enable markers on Globe2
This commit is contained in:
@@ -19,6 +19,7 @@ export class Globe {
|
||||
this.params = {
|
||||
autoRotate: options.autoRotate,
|
||||
speed: options.speed,
|
||||
enableMarkers: options.enableMarkers,
|
||||
zoom: 1.305,
|
||||
}
|
||||
|
||||
@@ -279,6 +280,7 @@ type Options = {
|
||||
autoRotate: boolean
|
||||
speed: number
|
||||
rotationStart?: number
|
||||
enableMarkers?: boolean
|
||||
markers?: any[]
|
||||
pane?: boolean
|
||||
}
|
||||
|
||||
@@ -15,4 +15,7 @@ export const createPane = (ctx: any) => {
|
||||
max: 0.025,
|
||||
step: 0.00025,
|
||||
})
|
||||
ctx.pane.addInput(ctx.params, 'enableMarkers', {
|
||||
label: 'Enable markers',
|
||||
})
|
||||
}
|
||||
Reference in New Issue
Block a user