diff --git a/map4.js b/map4.js index a4bf4c9..734f0d8 100644 --- a/map4.js +++ b/map4.js @@ -143,33 +143,38 @@ : "https://raw.githubusercontent.com/pointhi/leaflet-color-markers/master/img/marker-icon-gold.png"; const html = ` -
+
- +
${name}
@@ -179,13 +184,12 @@ icon: L.divIcon({ html, className: "", - iconSize: [30, 60], // ← 吹き出し+ピンに合わせて調整 - iconAnchor: [15, 41], // ← ピンの先端が地面に合う + iconSize: [80, 70], + iconAnchor: [40, 41], // ピン先端を地面に合わせる }), }); } - // =================================== // 自分のピンを描画 // ===================================