Globe: Rename instance
This commit is contained in:
@@ -25,11 +25,11 @@
|
|||||||
// For browser only
|
// For browser only
|
||||||
if (process.browser) {
|
if (process.browser) {
|
||||||
// Import libraries and code
|
// Import libraries and code
|
||||||
let WebglGlobe
|
let Globe
|
||||||
await import('globe').then(module => WebglGlobe = module.default)
|
await import('globe').then(module => Globe = module.default)
|
||||||
|
|
||||||
// Init the globe from library
|
// Init the globe from library
|
||||||
globe = new WebglGlobe({
|
globe = new Globe({
|
||||||
el: scope,
|
el: scope,
|
||||||
texture: '/img/globe/map-2k.png',
|
texture: '/img/globe/map-2k.png',
|
||||||
markers: [...$locations.map(location => {
|
markers: [...$locations.map(location => {
|
||||||
|
|||||||
Reference in New Issue
Block a user