Skip to content

Commit 9c79ad3

Browse files
committed
Update
1 parent df8f928 commit 9c79ad3

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/index.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,9 @@ const lcjs = require('@arction/lcjs')
88
// Extract required parts from LightningChartJS.
99
const { lightningChart, MapTypes, PalettedFill, LUT, ColorRGBA, formatLongitudeLatitude, regularColorSteps, Themes } = lcjs
1010

11-
const mapChart = lightningChart().Map({
11+
const mapChart = lightningChart({
12+
resourcesBaseUrl: new URL(document.head.baseURI).origin + new URL(document.head.baseURI).pathname + 'resources/',
13+
}).Map({
1214
theme: Themes[new URLSearchParams(window.location.search).get('theme') || 'darkGold'] || undefined,
1315
type: MapTypes.Europe,
1416
})

0 commit comments

Comments
 (0)