<?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 code issue in normalizeUtils of jsapi 4.10 in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/code-issue-in-normalizeutils-of-jsapi-4-10/m-p/276752#M25546</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hello,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i just encounter an issue when using the&amp;nbsp;normalizeUtils class in jsapi 4.10. After i run deep into the dist code, i'm afraid that this might be a coding issue. As u define a plain object with the key '4326', but it finally has a&amp;nbsp;spatialReference of&amp;nbsp;WebMercator.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As a result, i must have to use this class like this, when i decide to convert a geometry with the spatial ref 4326&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;normalizeUtils&lt;BR /&gt; .normalizeCentralMeridian([webMercatorUtils.geographicToWebMercator(line)])&lt;BR /&gt; .then(polylines =&amp;gt; {&lt;BR /&gt;&amp;nbsp; &amp;nbsp; ... ...&lt;BR /&gt; });&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That should be allowed to use it directly, if i already have a geometry with sp 4326, but not to convert all them to sp 102100 again. Right?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please look into this.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 14 Feb 2019 09:36:54 GMT</pubDate>
    <dc:creator>alfredyan</dc:creator>
    <dc:date>2019-02-14T09:36:54Z</dc:date>
    <item>
      <title>code issue in normalizeUtils of jsapi 4.10</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/code-issue-in-normalizeutils-of-jsapi-4-10/m-p/276752#M25546</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hello,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i just encounter an issue when using the&amp;nbsp;normalizeUtils class in jsapi 4.10. After i run deep into the dist code, i'm afraid that this might be a coding issue. As u define a plain object with the key '4326', but it finally has a&amp;nbsp;spatialReference of&amp;nbsp;WebMercator.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As a result, i must have to use this class like this, when i decide to convert a geometry with the spatial ref 4326&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;normalizeUtils&lt;BR /&gt; .normalizeCentralMeridian([webMercatorUtils.geographicToWebMercator(line)])&lt;BR /&gt; .then(polylines =&amp;gt; {&lt;BR /&gt;&amp;nbsp; &amp;nbsp; ... ...&lt;BR /&gt; });&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That should be allowed to use it directly, if i already have a geometry with sp 4326, but not to convert all them to sp 102100 again. Right?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please look into this.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Feb 2019 09:36:54 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/code-issue-in-normalizeutils-of-jsapi-4-10/m-p/276752#M25546</guid>
      <dc:creator>alfredyan</dc:creator>
      <dc:date>2019-02-14T09:36:54Z</dc:date>
    </item>
    <item>
      <title>Re: code issue in normalizeUtils of jsapi 4.10</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/code-issue-in-normalizeutils-of-jsapi-4-10/m-p/276753#M25547</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Do you have a simple codepen or jsbin showing the issue?&amp;nbsp; Also, not sure it it will help in your case, but please note that the parameter to&amp;nbsp;&lt;A class="link-titled" href="https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-support-webMercatorUtils.html#geographicToWebMercator" title="https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-support-webMercatorUtils.html#geographicToWebMercator"&gt;webMercatorUtils&lt;/A&gt;&amp;nbsp;is an instance of Geometry and not a plain js object; try creating and passing in a new&amp;nbsp;&lt;A class="link-titled" href="https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-Polyline.html" title="https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-Polyline.html"&gt;Polyline&lt;/A&gt;&amp;nbsp;instead.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Feb 2019 16:21:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/code-issue-in-normalizeutils-of-jsapi-4-10/m-p/276753#M25547</guid>
      <dc:creator>JohnGrayson</dc:creator>
      <dc:date>2019-02-15T16:21:44Z</dc:date>
    </item>
  </channel>
</rss>

