<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic How to over-ride the Label layer.js files method? in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-over-ride-the-label-layer-js-files-method/m-p/589639#M55109</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am trying to over-ride few methods of LabelLayer.js file, there are 2 class&amp;nbsp; "esri/layers/labelLayerUtils/DynamicLabelClass &amp;amp; "esri/layers/labelLayerUtils/StaticLabelClass"&amp;nbsp;which has been called from that js file.&lt;/P&gt;&lt;P&gt;It is working fine for below code:&lt;/P&gt;&lt;P&gt;&lt;EM&gt;require(["esri/layers/labelLayerUtils/DynamicLabelClass"],function(dc){&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt; if( typeof esri.layers.labelLayerUtils.DynamicLabelClass.prototype._findPlace == 'function' )&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt; {&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt; esri.layers.labelLayerUtils.DynamicLabelClass.prototype._findPlace = function(h, b, a, c, k, d, e){&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When i tried to over-ride method for&amp;nbsp;&lt;SPAN&gt;StaticLabelClass, its throwing "&lt;STRONG&gt;Prototype is undefined&lt;/STRONG&gt;"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;require(["esri/layers/labelLayerUtils/StaticLabelClass"],function(sc){&lt;BR /&gt; if(typeof esri.layers.labelLayerUtils.StaticLabel.prototype._findPlace='function'){&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;esri.layers.labelLayerUtils.StaticLabel.prototype._findPlace = function(b, a, c, k, d, e, f){&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;During debug, for labelLayerUtils, only DynamicLabelClass shown. PFB image&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;IMG class="image-1 jive-image" src="https://community.esri.com/legacyfs/online/493601_pastedImage_9.png" /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;whereas in JS API, I can see there are 2 files:&lt;IMG class="image-2 jive-image" src="https://community.esri.com/legacyfs/online/493602_pastedImage_10.png" /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Please help me how to get "StaticLabelClass" method to over-ride?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Shaikh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 27 May 2020 15:00:50 GMT</pubDate>
    <dc:creator>ShaikhRizuan</dc:creator>
    <dc:date>2020-05-27T15:00:50Z</dc:date>
    <item>
      <title>How to over-ride the Label layer.js files method?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-over-ride-the-label-layer-js-files-method/m-p/589639#M55109</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am trying to over-ride few methods of LabelLayer.js file, there are 2 class&amp;nbsp; "esri/layers/labelLayerUtils/DynamicLabelClass &amp;amp; "esri/layers/labelLayerUtils/StaticLabelClass"&amp;nbsp;which has been called from that js file.&lt;/P&gt;&lt;P&gt;It is working fine for below code:&lt;/P&gt;&lt;P&gt;&lt;EM&gt;require(["esri/layers/labelLayerUtils/DynamicLabelClass"],function(dc){&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt; if( typeof esri.layers.labelLayerUtils.DynamicLabelClass.prototype._findPlace == 'function' )&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt; {&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt; esri.layers.labelLayerUtils.DynamicLabelClass.prototype._findPlace = function(h, b, a, c, k, d, e){&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When i tried to over-ride method for&amp;nbsp;&lt;SPAN&gt;StaticLabelClass, its throwing "&lt;STRONG&gt;Prototype is undefined&lt;/STRONG&gt;"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;require(["esri/layers/labelLayerUtils/StaticLabelClass"],function(sc){&lt;BR /&gt; if(typeof esri.layers.labelLayerUtils.StaticLabel.prototype._findPlace='function'){&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;esri.layers.labelLayerUtils.StaticLabel.prototype._findPlace = function(b, a, c, k, d, e, f){&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;During debug, for labelLayerUtils, only DynamicLabelClass shown. PFB image&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;IMG class="image-1 jive-image" src="https://community.esri.com/legacyfs/online/493601_pastedImage_9.png" /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;whereas in JS API, I can see there are 2 files:&lt;IMG class="image-2 jive-image" src="https://community.esri.com/legacyfs/online/493602_pastedImage_10.png" /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Please help me how to get "StaticLabelClass" method to over-ride?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Shaikh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 May 2020 15:00:50 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-over-ride-the-label-layer-js-files-method/m-p/589639#M55109</guid>
      <dc:creator>ShaikhRizuan</dc:creator>
      <dc:date>2020-05-27T15:00:50Z</dc:date>
    </item>
  </channel>
</rss>

