forceGfxRenderer:'canvas' = No Click Events on Graphics Layers

2146
3
04-26-2016 03:17 PM
Patrick_Numainville
New Contributor II

Has anyone else run into a 'click' event issues on ArcGIS JS API v3.14 to v3.16 when using Canvas rendering?

var dojoConfig = {

forceGfxRenderer:'canvas'

};

It seems that esri.css contains a style preventing events from being processed by canvas GraphicsLayers when forceGfxRenderer is set to 'canvas'

.map .esriMapContainer .esriMapLayers > div {

  pointer-events: none;

}

ArcGIS Canvas Graphics Layer Click Issue - JSFiddle

- Fiddle demonstrating the problem. console message would be logged if click was intercepted..

We have worked around it now that we found this issue but this is the reason in case anyone else runs into this

0 Kudos
3 Replies
MikeNaughton2
New Contributor

What's been your work-around?

I'm running into the same issue in API version 3.17.

0 Kudos
LindaDunklee
New Contributor III

Does anyone have any input on how to work around this issue?  Having same problem in 3.18.

Thanks!

0 Kudos
jackcrawford
New Contributor

After spending days developing a solution based on forceGfxRenderer:'canvas' in 3.20 I too have discovered that events are not being generated for these graphics.

Is there a workaround ?

This also breaks the Edit tool.

Thanks.

0 Kudos