1
0
forked from MTSR/mapserver

no pointer events in label

This commit is contained in:
Thomas Rudin 2019-08-13 19:26:52 +02:00
parent 8ab32b94df
commit f80be67618

View File

@ -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}'