change icon size

This commit is contained in:
Amirhossein Mahmoodi
2025-01-06 10:52:39 +03:30
parent fa79ee736f
commit 3f32a65cdb

View File

@@ -23,8 +23,8 @@ const createCustomIcon = (size, iconUrl, labelText, color) => {
</div> </div>
<div style="width: 5px; height: 20px; background: ${color}; margin: auto;border-bottom-left-radius: 50%; border-bottom-right-radius: 50%;"></div> <div style="width: 5px; height: 20px; background: ${color}; margin: auto;border-bottom-left-radius: 50%; border-bottom-right-radius: 50%;"></div>
</div>`, </div>`,
iconSize: [100, 50], // Adjust icon size to fit your content iconSize: [50, 50],
iconAnchor: [50, 25], // Adjust to position the marker correctly iconAnchor: [25, 50],
}); });
} }