Skip to content

Commit 0e9a7cf

Browse files
committed
proper handling of public folder url
1 parent 11cecd4 commit 0e9a7cf

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/main.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,9 @@ document.querySelector('arcgis-map').addEventListener('arcgisViewReadyChange', (
2323
})
2424

2525
const lowheadDamsLayer = new GeoJSONLayer({
26+
url: new URL('/lowheaddams.geojson', window.location.origin + import.meta.env.BASE_URL).href,
2627
// url: new URL('/lowheaddams.geojson', import.meta.url).href,
27-
url: '/lowheaddams.geojson',
28+
// url: '/lowheaddams.geojson',
2829
title: 'Low Head Dams',
2930
renderer: {
3031
type: "simple",

0 commit comments

Comments
 (0)