Use static hosting for Leaflet map icons.

This commit is contained in:
Buster Neece 2023-07-25 17:05:04 -05:00
parent 0b1c29556b
commit 203ca2ce72
No known key found for this signature in database
6 changed files with 2 additions and 0 deletions

View File

@ -23,6 +23,8 @@ provide('map', $map);
const {theme} = useGetTheme();
onMounted(() => {
L.Icon.Default.imagePath = '/static/img/leaflet/';
// Init map
const map = L.map($container.value);
map.setView([40, 0], 1);

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 696 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 618 B