Skip to content

Commit 39a2b11

Browse files
committed
【fix】修复 ol 比例尺; 迁徙图例子图例无法点击; 符号等级专题图hover无效果; review by luox
1 parent a6b7d5d commit 39a2b11

File tree

3 files changed

+581
-569
lines changed

3 files changed

+581
-569
lines changed

examples/openlayers/echartsGeoLines.html

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,10 @@
1212
.ol-overlaycontainer-stopevent{
1313
height: 0% !important;
1414
}
15+
16+
.ol-overlaycontainer {
17+
pointer-events: auto !important;
18+
}
1519
</style>
1620
</head>
1721
<body style=" margin: 0;overflow: hidden;background: #fff;width: 100%;height:100%;position: absolute;top: 0;">
@@ -329,4 +333,4 @@
329333
echartslayer.setChartOptions(echartsOptions);
330334
</script>
331335
</body>
332-
</html>
336+
</html>

src/openlayers/control/ScaleLine.js

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -37,15 +37,15 @@ export class ScaleLine extends Scale {
3737
this.viewState_ = frameState.viewState; //NOSONAR
3838
}
3939
this.updateElementRepair(); //NOSONAR
40-
}
40+
};
4141
super(options); //NOSONAR
4242
}
4343

4444
updateElementRepair() {
45-
const viewState = this.viewState_ || this.o;
45+
const viewState = this.viewState_ || this.o || this.Om;
4646

4747
if (!viewState) {
48-
this.renderedVisible_ = this.renderedVisible_ || this.j;
48+
this.renderedVisible_ = this.renderedVisible_ || this.j || this.yn;
4949
if (this.renderedVisible_) {
5050
this.element_ = this.element_ || this.c;
5151
this.element.style.display = 'none';
@@ -62,7 +62,7 @@ export class ScaleLine extends Scale {
6262
"m";
6363
let pointResolution =
6464
olProj.getPointResolution(projection, viewState.resolution, center, pointResolutionUnits);
65-
this.minWidth_ = this.minWidth_ || this.v;
65+
this.minWidth_ = this.minWidth_ || this.v || this.Em;
6666
let nominalCount = this.minWidth_ * pointResolution;
6767
let suffix = '';
6868
if (units == "degrees") {
@@ -136,10 +136,10 @@ export class ScaleLine extends Scale {
136136
}
137137
++i;
138138
}
139-
this.renderedHTML_ = this.renderedHTML_ || this.D;
140-
this.innerElement_ = this.innerElement_ || this.l;
141-
this.renderedWidth_ = this.renderedWidth_ || this.B;
142-
this.renderedVisible_ = this.renderedVisible_ || this.j;
139+
this.renderedHTML_ = this.renderedHTML_ || this.D || this.am;
140+
this.innerElement_ = this.innerElement_ || this.l || this.Tm;
141+
this.renderedWidth_ = this.renderedWidth_ || this.B || this.Am;
142+
this.renderedVisible_ = this.renderedVisible_ || this.j || this.yn;
143143
this.element_ = this.element_ || this.c;
144144
let html= count.toFixed(decimalCount < 0 ? -decimalCount : 0) + ' ' + suffix;
145145
if (this.renderedHTML_ != html) {
@@ -158,4 +158,4 @@ export class ScaleLine extends Scale {
158158
}
159159

160160
}
161-
}
161+
}

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy