<?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 properly extend the Sketch Widget. in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-properly-extend-the-sketch-widget/m-p/58055#M5116</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;We have need of extending the sketch widget to allow for some custom behaviors and buttons.&amp;nbsp; I followed the steps given in&amp;nbsp;&lt;A href="https://github.com/jcfranco/dev-summit-2017-customizing-widgets"&gt;https://github.com/jcfranco/dev-summit-2017-customizing-widgets&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We started by installing the types of both arcgis and dojo:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #595959; background-color: #f8f8f8;"&gt;npm init --yes &lt;BR /&gt;npm install --save @types/arcgis-js-api&lt;BR /&gt;&lt;SPAN&gt;npm install dojo-typings --save-dev&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #595959; background-color: #f8f8f8;"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #595959; background-color: #f8f8f8;"&gt;&lt;SPAN&gt;packages.json&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #595959; background-color: #f8f8f8;"&gt;&lt;IMG class="image-3 jive-image" src="https://community.esri.com/legacyfs/online/454829_pastedImage_5.png" /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #595959; background-color: #f8f8f8;"&gt;Set up the typscript config as such:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-2 jive-image" src="https://community.esri.com/legacyfs/online/454828_pastedImage_4.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I copy over the widget and compile, I get the following.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Errors:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG class="jive-image image-4" src="https://community.esri.com/legacyfs/online/454830_pastedImage_6.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I attempted to resolve the paths, but I can't find these references.&amp;nbsp; When I look in the project on git hub, some of these paths do not exist.&amp;nbsp; I must have something set up incorrectly.&amp;nbsp; Any help putting me #in the right direction would be wonderful.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 30 Jul 2019 19:25:19 GMT</pubDate>
    <dc:creator>JustinMartinek</dc:creator>
    <dc:date>2019-07-30T19:25:19Z</dc:date>
    <item>
      <title>How to properly extend the Sketch Widget.</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-properly-extend-the-sketch-widget/m-p/58055#M5116</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;We have need of extending the sketch widget to allow for some custom behaviors and buttons.&amp;nbsp; I followed the steps given in&amp;nbsp;&lt;A href="https://github.com/jcfranco/dev-summit-2017-customizing-widgets"&gt;https://github.com/jcfranco/dev-summit-2017-customizing-widgets&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We started by installing the types of both arcgis and dojo:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #595959; background-color: #f8f8f8;"&gt;npm init --yes &lt;BR /&gt;npm install --save @types/arcgis-js-api&lt;BR /&gt;&lt;SPAN&gt;npm install dojo-typings --save-dev&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #595959; background-color: #f8f8f8;"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #595959; background-color: #f8f8f8;"&gt;&lt;SPAN&gt;packages.json&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #595959; background-color: #f8f8f8;"&gt;&lt;IMG class="image-3 jive-image" src="https://community.esri.com/legacyfs/online/454829_pastedImage_5.png" /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #595959; background-color: #f8f8f8;"&gt;Set up the typscript config as such:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-2 jive-image" src="https://community.esri.com/legacyfs/online/454828_pastedImage_4.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I copy over the widget and compile, I get the following.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Errors:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG class="jive-image image-4" src="https://community.esri.com/legacyfs/online/454830_pastedImage_6.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I attempted to resolve the paths, but I can't find these references.&amp;nbsp; When I look in the project on git hub, some of these paths do not exist.&amp;nbsp; I must have something set up incorrectly.&amp;nbsp; Any help putting me #in the right direction would be wonderful.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Jul 2019 19:25:19 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-properly-extend-the-sketch-widget/m-p/58055#M5116</guid>
      <dc:creator>JustinMartinek</dc:creator>
      <dc:date>2019-07-30T19:25:19Z</dc:date>
    </item>
    <item>
      <title>Re: How to properly extend the Sketch Widget.</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-properly-extend-the-sketch-widget/m-p/58056#M5117</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Are you copying the widget from&amp;nbsp;&lt;A href="https://github.com/Esri/arcgis-js-api/tree/4master/widgets"&gt;https://github.com/Esri/arcgis-js-api/tree/4master/widgets&lt;/A&gt;&amp;nbsp;? That won't work unless you install all the same dependencies we use via installing the JSAPI via npm. They're really meant more as a guide and not to be used directly, although you could with some effort.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check out the more recent version of that presentation here&amp;nbsp;&lt;A href="https://github.com/jcfranco/uc-2019-customizing-widgets"&gt;https://github.com/jcfranco/uc-2019-customizing-widgets&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The idea is that you can extend the widget as shown in the presentation.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Jul 2019 22:31:21 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-properly-extend-the-sketch-widget/m-p/58056#M5117</guid>
      <dc:creator>ReneRubalcava</dc:creator>
      <dc:date>2019-07-30T22:31:21Z</dc:date>
    </item>
    <item>
      <title>Re: How to properly extend the Sketch Widget.</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-properly-extend-the-sketch-widget/m-p/58057#M5118</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you. It seemed to start out the same way as the one I was following, but the extending part was much more helpful.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Aug 2019 21:24:25 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-properly-extend-the-sketch-widget/m-p/58057#M5118</guid>
      <dc:creator>JustinMartinek</dc:creator>
      <dc:date>2019-08-01T21:24:25Z</dc:date>
    </item>
  </channel>
</rss>

