Select to view content in your preferred language

esri/views/layers/GraphicsLayerView can't be extended.

435
0
04-23-2021 05:22 PM
EugeneStaten
Occasional Contributor

I am trying to extend the GraphicsLayerView in typescript.

 

import GraphicsLayerView from "esri/views/layers/GraphicsLayerView";

@subclass("views.layers.My2dGraphicsLayerView")

export My2dGraphicsLayerView extends GraphicsLayerView {

}

When I try to load my application in a browser, I get this exception message:

Uncaught ReferenceError: GraphicsLayerview is not defined

 

I even tried in plain old javascript and this class does not exist there.   The GraphicsLayer is using a LayerView called GraphicsLayerView2D.

This LayerView has no api documentation and seems to be a hidden, proprietary class.
How do I extend GraphicLayerView functionality while still using the machanics of an existing, well designed, LayerView?

0 Kudos
0 Replies