供水地图点位样式修改
parent
710df1cc6b
commit
52a491bfcf
|
|
@ -40,7 +40,7 @@ function GongShuiMarker({ data, dispatch, setting, zoom, distSq }) {
|
||||||
}
|
}
|
||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
const width = 12;
|
const width = 18;
|
||||||
|
|
||||||
const placeholder = document.getElementById(`marker_gongshui_${data.id}`);
|
const placeholder = document.getElementById(`marker_gongshui_${data.id}`);
|
||||||
if (!placeholder) {
|
if (!placeholder) {
|
||||||
|
|
@ -140,7 +140,8 @@ function GongShuiMarker({ data, dispatch, setting, zoom, distSq }) {
|
||||||
fontWeight:"bold",
|
fontWeight:"bold",
|
||||||
fontSize:16,
|
fontSize:16,
|
||||||
transformOrigin: 'bottom center',
|
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,
|
lineHeight: 1,
|
||||||
zIndex: zindexmarker.gongshui + zindexOffset + (highlight ? zindexmarker.hilightPlus : 0),
|
zIndex: zindexmarker.gongshui + zindexOffset + (highlight ? zindexmarker.hilightPlus : 0),
|
||||||
cursor:"pointer"
|
cursor:"pointer"
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue