mirror of
https://github.com/neocturne/MinedMap.git
synced 2025-03-04 17:23:33 +01:00
viewer: add icon shadows
This commit is contained in:
parent
989428f78d
commit
ac0fd06b16
5 changed files with 5 additions and 3 deletions
|
@ -40,12 +40,14 @@ const signIcons = {};
|
|||
|
||||
function signIcon(material, kind) {
|
||||
function createSignIcon(material, kind) {
|
||||
const params = signKinds[kind];
|
||||
const {iconSize, popupAnchor} = signKinds[kind];
|
||||
|
||||
return L.icon({
|
||||
iconUrl: `images/icon/${material}_${kind}.png`,
|
||||
iconSize: params.iconSize,
|
||||
popupAnchor: params.popupAnchor,
|
||||
iconSize,
|
||||
popupAnchor,
|
||||
shadowUrl: `images/icon/shadow_${kind}.png`,
|
||||
shadowSize: [iconSize[0]+8, iconSize[1]+8],
|
||||
className: 'overzoomed',
|
||||
});
|
||||
}
|
||||
|
|
BIN
viewer/images/icon/shadow_hanging_sign.png
Normal file
BIN
viewer/images/icon/shadow_hanging_sign.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 213 B |
BIN
viewer/images/icon/shadow_hanging_wall_sign.png
Normal file
BIN
viewer/images/icon/shadow_hanging_wall_sign.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 200 B |
BIN
viewer/images/icon/shadow_sign.png
Normal file
BIN
viewer/images/icon/shadow_sign.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 194 B |
BIN
viewer/images/icon/shadow_wall_sign.png
Normal file
BIN
viewer/images/icon/shadow_wall_sign.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 152 B |
Loading…
Add table
Reference in a new issue