diff --git a/map4.js b/map4.js index f8e03c7..df91133 100644 --- a/map4.js +++ b/map4.js @@ -147,26 +147,27 @@ const html = `
- - + +
${shortName}
- +
`; @@ -175,13 +176,14 @@ icon: L.divIcon({ html, className: "", - iconSize: [40, 70], // 縦長に(吹き出し + ピン) - iconAnchor: [20, 55], // ピン先端を地面に合わせる + iconSize: [40, 90], // ← 吹き出し高くしたので全体も伸ばす + iconAnchor: [20, 45] // ← ピンの先端が地面に刺さるよう調整 }), }); } + // =================================== // 自分のピンを描画 // ===================================