供水地图点位样式修改

qzc-dev
秦子超 2025-10-21 16:15:59 +08:00
parent 710df1cc6b
commit 52a491bfcf
1 changed files with 3 additions and 2 deletions

View File

@ -40,7 +40,7 @@ function GongShuiMarker({ data, dispatch, setting, zoom, distSq }) {
}
useEffect(() => {
const width = 12;
const width = 18;
const placeholder = document.getElementById(`marker_gongshui_${data.id}`);
if (!placeholder) {
@ -140,7 +140,8 @@ function GongShuiMarker({ data, dispatch, setting, zoom, distSq }) {
fontWeight:"bold",
fontSize:16,
transformOrigin: 'bottom center',
transform: `translateX(-50%)${markerZoom > 1 ? ' scale(' + markerZoom + ')' : ''}`,
// transform: `translateX(-50%)${markerZoom > 1 ? ' scale(' + markerZoom + ')' : ''}`,
transform: 'translateX(-50%) scale(1.2)',
lineHeight: 1,
zIndex: zindexmarker.gongshui + zindexOffset + (highlight ? zindexmarker.hilightPlus : 0),
cursor:"pointer"