AnsweredAssumed Answered

JS API 4.10 - Clipping a single layer

Question asked by r.koenigmysynergis-esridist Employee on Dec 20, 2018
Latest reply on Dec 20, 2018 by YCabon-esristaff

We have the task to display only a small region of a layer (in our case a MapImageLayer) around the mouse, and the visible part should move with the mouse. It is some sort of overlay above the other layers.

 

In 4.9 we did this by clipping the canvas of this single layer, but since in 4.10 all layers draw on the same canvas we can't do that anymore.

 

One way we were thinking of is to initialize a second MapView above the first one holding only this single layer.

But that is just our first (and not preferred) idea because of complexity in view handling, event handling, etc.

 

 

Does anyone have any ideas how to achieve our goal in 4.10+ ?
Is it possible to force a layer to draw on it's own canvas above the other layers combind canvas?

Outcomes