forked from MTSR/mapserver
no pointer events in label
This commit is contained in:
parent
8ab32b94df
commit
f80be67618
@ -21,7 +21,7 @@ export default AbstractIconOverlay.extend({
|
|||||||
var notVisible = (fontSize < 2 || fontSize > 50);
|
var notVisible = (fontSize < 2 || fontSize > 50);
|
||||||
|
|
||||||
const html = `
|
const html = `
|
||||||
<svg height='${height}' width='${width}' text-anchor='middle'>
|
<svg height='${height}' width='${width}' text-anchor='middle' style='pointer-events: none;'>
|
||||||
<text x='${width/2}' y='${height/2}'
|
<text x='${width/2}' y='${height/2}'
|
||||||
font-size='${fontSize}px'
|
font-size='${fontSize}px'
|
||||||
fill='${lbl.attributes.color}'
|
fill='${lbl.attributes.color}'
|
||||||
|
Loading…
Reference in New Issue
Block a user