From b80941a0df45dbb266e12f4c31bb2a38a6415b94 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fe=CC=81lix=20Pe=CC=81ault?= Date: Sat, 4 Apr 2020 12:45:58 +0200 Subject: [PATCH] Temporarily disable the globe --- src/molecules/InteractiveGlobe.svelte | 46 +++++++++++++-------------- 1 file changed, 23 insertions(+), 23 deletions(-) diff --git a/src/molecules/InteractiveGlobe.svelte b/src/molecules/InteractiveGlobe.svelte index 613e9bd..11046b0 100644 --- a/src/molecules/InteractiveGlobe.svelte +++ b/src/molecules/InteractiveGlobe.svelte @@ -20,34 +20,34 @@ */ onMount(async () => { // For browser only - if (process.browser) { - // Import libraries and code - let WebglGlobe - await import('globe').then(module => WebglGlobe = module.default) + // if (process.browser) { + // // Import libraries and code + // let WebglGlobe + // await import('globe').then(module => WebglGlobe = module.default) - // Init the globe from library - globe = new WebglGlobe({ - el: scope, - texture: '/img/globe/map-4k.png', - markers: [...$locations.map(location => { - return { - name: location.name, - slug: location.slug, - countrySlug: location.country.slug, - lat: location.coordinates.lat, - lng: location.coordinates.lng - } - })] - }) + // // Init the globe from library + // globe = new WebglGlobe({ + // el: scope, + // texture: '/img/globe/map-4k.png', + // markers: [...$locations.map(location => { + // return { + // name: location.name, + // slug: location.slug, + // countrySlug: location.country.slug, + // lat: location.coordinates.lat, + // lng: location.coordinates.lng + // } + // })] + // }) - // Run the globe - resize() - update() - } + // // Run the globe + // resize() + // update() + // } }) - +