AnsweredAssumed Answered

Buffer draw not occurring until drag event finishes.

Question asked by hbarrett on Mar 19, 2018

I am trying to draw a buffer at the center of the map, and update the placement of the buffer as the map is dragged, so the buffer is always at the center of the map even when the map is being dragged. It kinda works, but you can only see the new layers when the left mouse is released. If you comment out the pointLayer.removeAll(); and buffLayer.removeAll(); lines, you can see that the layers are being drawn, just not displayed until the drag event is finished.

Any help or suggestions are welcome. Thanks.




demo - JSFiddle