diff --git a/map4.js b/map4.js
index b055757..ba2dd33 100644
--- a/map4.js
+++ b/map4.js
@@ -146,28 +146,22 @@
: "https://raw.githubusercontent.com/pointhi/leaflet-color-markers/master/img/marker-icon-gold.png";
const html = `
-
-

-
${name}
+
+

+
${name}
`;
return L.marker([lat, lng], {
icon: L.divIcon({
className: "custom-pin",
- html,
- iconSize: [32, 32],
- iconAnchor: [16, 32],
+ html: html,
+ iconSize: [32, 48], // 見た目用のおおよそのサイズ
+ iconAnchor: [16, 40], // 下中央あたりを地図の座標に
}),
});
}
-function renderSelfMarker() {
- if (selfMarker) map.removeLayer(selfMarker);
- selfMarker = createLabeledMarker(lastLat, lastLng, currentUser, true);
- selfMarker.addTo(map);
-}
-
// ===================================
// 距離計算(バグ修正版)
// ===================================