<?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 Add Shapefile widget in Web AppBuilder Custom Widgets Questions</title>
    <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/add-shapefile-widget/m-p/839273#M9096</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 using the "add Shapefile Widget" that someone here helped to create. Now that I am using it and checking the behavior I notice that the polygons that compose the shapefile, after adding it to WAB app the polygons do not respect the original forms, they have a distotion very significant.&lt;/P&gt;&lt;P&gt;First I thought it was because AGOL use Web Mercator Coordinates system. Here in Puerto Rico we use Nad83 Projected Coordinate system So I&amp;nbsp; added on parcel example in Nad83 and I notice the distortion, after that I added the same chunk of parcels projected to Web Mercator and I had the exact same distortion in the same parcels.&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Add Shapefile2.PNG" class="image-1 jive-image" src="/legacyfs/online/171242_Add Shapefile2.PNG" style="width: 620px; height: 405px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Add Shapefile.PNG" class="image-2 jive-image" src="/legacyfs/online/171243_Add Shapefile.PNG" style="width: 620px; height: 407px;" /&gt;&lt;/P&gt;&lt;P&gt;My question is, Do you know why could it be happening? dos anybody knows is someone notice the same behavior? is there a new version of this widget for WAB 1.3? how could i solve this problem? this problem also happend in WAB 1.2&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Diego Llamas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 20 Jan 2016 15:33:11 GMT</pubDate>
    <dc:creator>DiegoLlamas</dc:creator>
    <dc:date>2016-01-20T15:33:11Z</dc:date>
    <item>
      <title>Add Shapefile widget</title>
      <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/add-shapefile-widget/m-p/839273#M9096</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 using the "add Shapefile Widget" that someone here helped to create. Now that I am using it and checking the behavior I notice that the polygons that compose the shapefile, after adding it to WAB app the polygons do not respect the original forms, they have a distotion very significant.&lt;/P&gt;&lt;P&gt;First I thought it was because AGOL use Web Mercator Coordinates system. Here in Puerto Rico we use Nad83 Projected Coordinate system So I&amp;nbsp; added on parcel example in Nad83 and I notice the distortion, after that I added the same chunk of parcels projected to Web Mercator and I had the exact same distortion in the same parcels.&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Add Shapefile2.PNG" class="image-1 jive-image" src="/legacyfs/online/171242_Add Shapefile2.PNG" style="width: 620px; height: 405px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Add Shapefile.PNG" class="image-2 jive-image" src="/legacyfs/online/171243_Add Shapefile.PNG" style="width: 620px; height: 407px;" /&gt;&lt;/P&gt;&lt;P&gt;My question is, Do you know why could it be happening? dos anybody knows is someone notice the same behavior? is there a new version of this widget for WAB 1.3? how could i solve this problem? this problem also happend in WAB 1.2&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Diego Llamas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Jan 2016 15:33:11 GMT</pubDate>
      <guid>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/add-shapefile-widget/m-p/839273#M9096</guid>
      <dc:creator>DiegoLlamas</dc:creator>
      <dc:date>2016-01-20T15:33:11Z</dc:date>
    </item>
    <item>
      <title>Re: Add Shapefile widget</title>
      <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/add-shapefile-widget/m-p/839274#M9097</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Diego,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;have you looked into the code widget.js? It generalizes features on the fly:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; //generalize features for display Here we generalize at 1:40,000 which is approx 10 meters&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; //This should work well when using web mercator.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var extent = scaleUtils.getExtentForScale(widgetMap, 40000);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var resolution = extent.getWidth() / widgetMap.width;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; params.generalize = true;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; params.maxAllowableOffset = resolution;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; params.reducePrecision = true;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; params.numberOfDigitsAfterDecimal = 0;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Personally, I don't want the shapes to be generalized (e.g. a round circle is after generalization not that round anymore as vertices are removed) , so I commented out these few lines of code...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Monika&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 Jan 2016 15:46:45 GMT</pubDate>
      <guid>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/add-shapefile-widget/m-p/839274#M9097</guid>
      <dc:creator>MonikaHonkova2</dc:creator>
      <dc:date>2016-01-29T15:46:45Z</dc:date>
    </item>
    <item>
      <title>Re: Add Shapefile widget</title>
      <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/add-shapefile-widget/m-p/839275#M9098</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Monika,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for your help!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 Jan 2016 18:09:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/add-shapefile-widget/m-p/839275#M9098</guid>
      <dc:creator>DiegoLlamas</dc:creator>
      <dc:date>2016-01-29T18:09:55Z</dc:date>
    </item>
  </channel>
</rss>

