We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b334daf commit 014b9bcCopy full SHA for 014b9bc
examples/openlayers/07_graphiclayer_webgl2.html
@@ -14,10 +14,12 @@
14
#title {
15
position: absolute;
16
color: white;
17
- left: 0;
18
- top: 30px;
19
text-align: center;
20
- width: 100%;
+ width: 600px;
+ left: 0;
+ top: 0;
21
+ right: 0;
22
+ margin: auto
23
}
24
25
#title > h3 {
src/openlayers/overlay/Graphic.js
@@ -83,6 +83,9 @@ export class Graphic extends ImageCanvasSource {
83
84
if (options.onClick) {
85
me.map.on('click', function (e) {
86
+ if(me.renderer instanceof GraphicWebGLRenderer){
87
+ return;
88
+ }
89
const features = me.map.getFeaturesAtPixel(e.pixel) || [];
90
for (let index = 0; index < features.length; index++) {
91
const graphic = features[index];
0 commit comments