Use public dir for static assets

This commit is contained in:
Râu Cao 2022-09-03 11:54:15 +02:00
parent 5ced6774ed
commit 47f1fce82d
Signed by: raucao
GPG Key ID: 15E65F399D084BA9
3 changed files with 2 additions and 2 deletions

View File

@ -33,7 +33,7 @@ const styles = {
anchor: [0.5, 46], anchor: [0.5, 46],
anchorXUnits: 'fraction', anchorXUnits: 'fraction',
anchorYUnits: 'pixels', anchorYUnits: 'pixels',
src: 'data/icon.png', src: '/img/icon.png',
}), }),
}), }),
iconVan: new Style({ iconVan: new Style({
@ -41,7 +41,7 @@ const styles = {
anchor: [0.5, 16], anchor: [0.5, 16],
anchorXUnits: 'fraction', anchorXUnits: 'fraction',
anchorYUnits: 'pixels', anchorYUnits: 'pixels',
src: 'data/van-100px.png', src: '/img/van-100px.png',
}), }),
}), }),
circleBlack: new Style({ circleBlack: new Style({

View File

Before

Width:  |  Height:  |  Size: 2.5 KiB

After

Width:  |  Height:  |  Size: 2.5 KiB

View File

Before

Width:  |  Height:  |  Size: 8.2 KiB

After

Width:  |  Height:  |  Size: 8.2 KiB