Use static hosting for Leaflet map icons.
This commit is contained in:
parent
0b1c29556b
commit
203ca2ce72
|
@ -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 |
Loading…
Reference in New Issue