<?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 Re: Cannot read property 'type' of undefined in ArcNesia Questions</title>
    <link>https://community.esri.com/t5/arcnesia-questions/cannot-read-property-type-of-undefined/m-p/767606#M3</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thank you, i'll try to do that.&lt;/P&gt;&lt;P&gt;&lt;A href="https://github.com/tmcgee/cmv-widgets/issues/207"&gt;https://github.com/tmcgee/cmv-widgets/issues/207&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #212121; background-color: #ffffff; font-size: 16px;"&gt;I found the way in the form of ESRI, not converted into CMV:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #212121; background-color: #ffffff; font-size: 16px;"&gt;&lt;A href="https://github.com/aspetkov/cmv-widgets/tree/master/JS2Shapefile"&gt;https://github.com/aspetkov/cmv-widgets/tree/master/JS2Shapefile&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 09 Apr 2019 00:27:37 GMT</pubDate>
    <dc:creator>puguheko</dc:creator>
    <dc:date>2019-04-09T00:27:37Z</dc:date>
    <item>
      <title>Cannot read property 'type' of undefined</title>
      <link>https://community.esri.com/t5/arcnesia-questions/cannot-read-property-type-of-undefined/m-p/767604#M1</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have an undefined problem with geometry.type, where I use symbol points, polylines and polygons for drawings and then export them into shapefiles.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-1 jive-image" src="https://community.esri.com/legacyfs/online/441452_pastedImage_1.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;var symbol;&lt;BR /&gt; if ( evt.geometry.type === "point") {&lt;BR /&gt; symbol = new Graphic(evt.geometry);&lt;BR /&gt; this.pointGraphics.add(symbol);&lt;BR /&gt; symbol = this.markerSymbol;&lt;BR /&gt; } else if ( evt.geometry.type === "polyline") {&lt;BR /&gt; symbol = new Graphic(evt.geometry);&lt;BR /&gt; this.polylineGraphics.add(symbol);&lt;BR /&gt; symbol = this.lineSymbol;&lt;BR /&gt; } else if ( evt.geometry.type === "polygon") {&lt;BR /&gt; symbol = new Graphic(evt.geometry, null, {&lt;BR /&gt; ren: 1&lt;BR /&gt; });&lt;BR /&gt; this.polygonGraphics.add(symbol);&lt;BR /&gt; symbol = this.fillSymbol;&lt;BR /&gt; }&lt;BR /&gt; &lt;BR /&gt; this.connectMapClick();&lt;BR /&gt; this.map.graphics.add(new Graphic(evt.geometry, symbol));&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/441453_pastedImage_2.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I use cmv.io and dojo.toolkit for the script.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Apr 2019 14:49:33 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcnesia-questions/cannot-read-property-type-of-undefined/m-p/767604#M1</guid>
      <dc:creator>puguheko</dc:creator>
      <dc:date>2019-04-08T14:49:33Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot read property 'type' of undefined</title>
      <link>https://community.esri.com/t5/arcnesia-questions/cannot-read-property-type-of-undefined/m-p/767605#M2</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It looks like you are creating a custom widget based on the Draw widget included with CMV. In order to assist troubleshooting your custom code, I recommend that you create a GitHub repo containing the complete custom widget along with an example configuration that demonstrates the issue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Instead of developing your own export methods, you may want to consider implementing my Export widget &lt;A href="https://github.com/tmcgee/cmv-widgets#export"&gt;https://github.com/tmcgee/cmv-widgets#export&lt;/A&gt;&amp;nbsp;which will handle the export to shapefile along with numerous other spatial and non-spatial formats. Passing the desired features for export to that widget is just a few lines of custom code. If you post an issue about the Export widget within my cmv-widgets repo, I can assist you there.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Apr 2019 18:59:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcnesia-questions/cannot-read-property-type-of-undefined/m-p/767605#M2</guid>
      <dc:creator>TimMcGee1</dc:creator>
      <dc:date>2019-04-08T18:59:56Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot read property 'type' of undefined</title>
      <link>https://community.esri.com/t5/arcnesia-questions/cannot-read-property-type-of-undefined/m-p/767606#M3</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thank you, i'll try to do that.&lt;/P&gt;&lt;P&gt;&lt;A href="https://github.com/tmcgee/cmv-widgets/issues/207"&gt;https://github.com/tmcgee/cmv-widgets/issues/207&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #212121; background-color: #ffffff; font-size: 16px;"&gt;I found the way in the form of ESRI, not converted into CMV:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #212121; background-color: #ffffff; font-size: 16px;"&gt;&lt;A href="https://github.com/aspetkov/cmv-widgets/tree/master/JS2Shapefile"&gt;https://github.com/aspetkov/cmv-widgets/tree/master/JS2Shapefile&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Apr 2019 00:27:37 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcnesia-questions/cannot-read-property-type-of-undefined/m-p/767606#M3</guid>
      <dc:creator>puguheko</dc:creator>
      <dc:date>2019-04-09T00:27:37Z</dc:date>
    </item>
  </channel>
</rss>

