mirror of
https://github.com/daniel-fiuk/simple-map.git
synced 2026-07-22 06:54:24 +00:00
Update pinInteractions.ts
This commit is contained in:
parent
5b2da38074
commit
2d0cf45253
1 changed files with 2 additions and 1 deletions
|
|
@ -439,7 +439,8 @@ class PinInteractionManager implements PinInteractionController {
|
|||
if (parts.length !== 4 || parts.some(value => value === undefined || Number.isNaN(value))) {
|
||||
return `viewBox="${vb}"`;
|
||||
}
|
||||
|
||||
|
||||
const [x, y, w, h] = parts;
|
||||
x ??= 0;
|
||||
y ??= 0;
|
||||
w ??= 500;
|
||||
|
|
|
|||
Loading…
Reference in a new issue