Hi,
I am trying to over-ride few methods of LabelLayer.js file, there are 2 class "esri/layers/labelLayerUtils/DynamicLabelClass & "esri/layers/labelLayerUtils/StaticLabelClass" which has been called from that js file.
It is working fine for below code:
require(["esri/layers/labelLayerUtils/DynamicLabelClass"],function(dc){
if( typeof esri.layers.labelLayerUtils.DynamicLabelClass.prototype._findPlace == 'function' )
{
esri.layers.labelLayerUtils.DynamicLabelClass.prototype._findPlace = function(h, b, a, c, k, d, e){
When i tried to over-ride method for StaticLabelClass, its throwing "Prototype is undefined"
require(["esri/layers/labelLayerUtils/StaticLabelClass"],function(sc){
if(typeof esri.layers.labelLayerUtils.StaticLabel.prototype._findPlace='function'){
esri.layers.labelLayerUtils.StaticLabel.prototype._findPlace = function(b, a, c, k, d, e, f){
During debug, for labelLayerUtils, only DynamicLabelClass shown. PFB image
![](/legacyfs/online/493601_pastedImage_9.png)
whereas in JS API, I can see there are 2 files:![](/legacyfs/online/493602_pastedImage_10.png)
Please help me how to get "StaticLabelClass" method to over-ride?
Regards,
Shaikh