Skip to content

Commit dd98a3a

Browse files
committed
【update】 ol 图例例子点击交互优化; review by songym
1 parent 4c73779 commit dd98a3a

File tree

2 files changed

+12
-4
lines changed

2 files changed

+12
-4
lines changed

examples/openlayers/echartsLianjia.html

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,10 @@
4141
.ol-overlaycontainer-stopevent{
4242
height: 0% !important;
4343
}
44+
45+
.ol-overlaycontainer {
46+
pointer-events: auto !important;
47+
}
4448
</style>
4549
</head>
4650

@@ -51,7 +55,7 @@ <h2 id="title" data-i18n="resources.title_lianjia"></h2>
5155
</div>
5256
<script type="text/javascript" include="jquery" src="../js/include-web.js"></script>
5357
<script>
54-
58+
5559
var host = window.isLocal ? window.server : "https://iserver.supermap.io";
5660

5761
var url = host + "/iserver/services/map-china400/rest/maps/ChinaDark";
@@ -161,7 +165,7 @@ <h2 id="title" data-i18n="resources.title_lianjia"></h2>
161165

162166
var pointRightBottom = [api.value(3), api.value(4)];
163167
pointRightBottom = map.getPixelFromCoordinate(pointRightBottom);
164-
168+
165169
return {
166170
type: 'rect',
167171
shape: {
@@ -180,4 +184,4 @@ <h2 id="title" data-i18n="resources.title_lianjia"></h2>
180184
</script>
181185
</body>
182186

183-
</html>
187+
</html>

examples/openlayers/echartsScatterWeibo.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;">
@@ -129,4 +133,4 @@
129133
});
130134
</script>
131135
</body>
132-
</html>
136+
</html>

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