<?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 Trouble with normalUtils/normalizeCentralMeridian() in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/trouble-with-normalutils-normalizecentralmeridian/m-p/751716#M69504</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am trying to use the normalizeCentralMeridian method to normalize the coordinates over dateline. I have the following code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;var rings = JSON.stringify(evt.geometry.rings);&lt;/P&gt;&lt;P&gt;var genoms = new Extent(evt.geometry.rings);&amp;nbsp; //I have also tested making genoms of type new Geometry with the same //outcome&lt;/P&gt;&lt;P&gt;console.log("genoms: ", genoms);&lt;/P&gt;&lt;P&gt;console.log("before normalizeUtils.normalizeCentralMeridian()");&lt;/P&gt;&lt;P&gt;console.log(normalizeUtils.normalizeCentralMeridian(geoms);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;evt.geometry.rings is an array object. Printing it out gives me the following:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;[[[-232.56299422870526,37.89843860927253],[-232.35205659066006,37.89843860927253],[-232.35205659066006,37.766602669313315],[-232.56299422870526,37.766602669313315],[-232.56299422870526,37.89843860927253]]]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Printing out genoms gives me the following:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;OL class="" style="color: #212121 !important; font-size: 12px;"&gt;&lt;LI class=""&gt;&lt;OL class="" style="padding-left: 12px;"&gt;&lt;LI class=""&gt;&lt;SPAN class=""&gt;Array(5)&lt;/SPAN&gt;&lt;OL class="" style="padding-left: 12px;"&gt;&lt;LI class=""&gt;&lt;SPAN class="" style="color: #881391;"&gt;0&lt;/SPAN&gt;&lt;SPAN class="" style="padding-right: 5px;"&gt;:&lt;/SPAN&gt;&lt;SPAN class=""&gt;&lt;SPAN class="" style="color: gray;"&gt;(2)&amp;nbsp;&lt;/SPAN&gt;[&lt;SPAN class="" style="color: #1c00cf;"&gt;-231.97361670477855&lt;/SPAN&gt;,&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="" style="color: #1c00cf;"&gt;37.030176591569784&lt;/SPAN&gt;]&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI class=""&gt;&lt;SPAN class="" style="color: #881391;"&gt;1&lt;/SPAN&gt;&lt;SPAN class="" style="padding-right: 5px;"&gt;:&lt;/SPAN&gt;&lt;SPAN class=""&gt;&lt;SPAN class="" style="color: gray;"&gt;(2)&amp;nbsp;&lt;/SPAN&gt;[&lt;SPAN class="" style="color: #1c00cf;"&gt;-231.55174142868816&lt;/SPAN&gt;,&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="" style="color: #1c00cf;"&gt;37.030176591569784&lt;/SPAN&gt;]&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI class=""&gt;&lt;SPAN class="" style="color: #881391;"&gt;2&lt;/SPAN&gt;&lt;SPAN class="" style="padding-right: 5px;"&gt;:&lt;/SPAN&gt;&lt;SPAN class=""&gt;&lt;SPAN class="" style="color: gray;"&gt;(2)&amp;nbsp;&lt;/SPAN&gt;[&lt;SPAN class="" style="color: #1c00cf;"&gt;-231.55174142868816&lt;/SPAN&gt;,&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="" style="color: #1c00cf;"&gt;36.907130250716335&lt;/SPAN&gt;]&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI class=""&gt;&lt;SPAN class="" style="color: #881391;"&gt;3&lt;/SPAN&gt;&lt;SPAN class="" style="padding-right: 5px;"&gt;:&lt;/SPAN&gt;&lt;SPAN class=""&gt;&lt;SPAN class="" style="color: gray;"&gt;(2)&amp;nbsp;&lt;/SPAN&gt;[&lt;SPAN class="" style="color: #1c00cf;"&gt;-231.97361670477855&lt;/SPAN&gt;,&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="" style="color: #1c00cf;"&gt;36.907130250716335&lt;/SPAN&gt;]&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI class=""&gt;&lt;SPAN class="" style="color: #881391;"&gt;4&lt;/SPAN&gt;&lt;SPAN class="" style="padding-right: 5px;"&gt;:&lt;/SPAN&gt;&lt;SPAN class=""&gt;&lt;SPAN class="" style="color: gray;"&gt;(2)&amp;nbsp;&lt;/SPAN&gt;[&lt;SPAN class="" style="color: #1c00cf;"&gt;-231.97361670477855&lt;/SPAN&gt;,&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="" style="color: #1c00cf;"&gt;37.030176591569784&lt;/SPAN&gt;]&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN class="" style="color: #881391;"&gt;length&lt;/SPAN&gt;&lt;SPAN class="" style="padding-right: 5px;"&gt;:&lt;/SPAN&gt;&lt;SPAN class="" style="color: #1c00cf;"&gt;5&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI class=""&gt;&lt;SPAN class="" style="color: #881391;"&gt;__proto__&lt;/SPAN&gt;&lt;SPAN class="" style="padding-right: 5px;"&gt;:&lt;/SPAN&gt;&lt;SPAN class=""&gt;Array(0)&lt;/SPAN&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN class="" style="color: #881391;"&gt;cache&lt;/SPAN&gt;&lt;SPAN class="" style="padding-right: 5px;"&gt;:&lt;/SPAN&gt;&lt;SPAN&gt;&lt;SPAN class=""&gt;(...)&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN class="" style="color: #881391;"&gt;center&lt;/SPAN&gt;&lt;SPAN class="" style="padding-right: 5px;"&gt;:&lt;/SPAN&gt;&lt;SPAN&gt;&lt;SPAN class=""&gt;(...)&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN class="" style="color: #881391;"&gt;extent&lt;/SPAN&gt;&lt;SPAN class="" style="padding-right: 5px;"&gt;:&lt;/SPAN&gt;&lt;SPAN&gt;&lt;SPAN class=""&gt;(...)&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN class="" style="color: #881391;"&gt;hasM&lt;/SPAN&gt;&lt;SPAN class="" style="padding-right: 5px;"&gt;:&lt;/SPAN&gt;&lt;SPAN&gt;&lt;SPAN class=""&gt;(...)&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN class="" style="color: #881391;"&gt;hasZ&lt;/SPAN&gt;&lt;SPAN class="" style="padding-right: 5px;"&gt;:&lt;/SPAN&gt;&lt;SPAN&gt;&lt;SPAN class=""&gt;(...)&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN class="" style="color: #881391;"&gt;height&lt;/SPAN&gt;&lt;SPAN class="" style="padding-right: 5px;"&gt;:&lt;/SPAN&gt;&lt;SPAN&gt;&lt;SPAN class=""&gt;(...)&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN class="" style="color: #881391;"&gt;length&lt;/SPAN&gt;&lt;SPAN class="" style="padding-right: 5px;"&gt;:&lt;/SPAN&gt;&lt;SPAN class="" style="color: #1c00cf;"&gt;1&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN class="" style="color: #881391;"&gt;mmax&lt;/SPAN&gt;&lt;SPAN class="" style="padding-right: 5px;"&gt;:&lt;/SPAN&gt;&lt;SPAN&gt;&lt;SPAN class=""&gt;(...)&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN class="" style="color: #881391;"&gt;mmin&lt;/SPAN&gt;&lt;SPAN class="" style="padding-right: 5px;"&gt;:&lt;/SPAN&gt;&lt;SPAN&gt;&lt;SPAN class=""&gt;(...)&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI class=""&gt;&lt;SPAN class="" style="color: #881391;"&gt;spatialReference&lt;/SPAN&gt;&lt;SPAN class="" style="padding-right: 5px;"&gt;:&lt;/SPAN&gt;&lt;SPAN class=""&gt;Object&lt;/SPAN&gt;&lt;OL class="" style="padding-left: 12px;"&gt;&lt;LI&gt;&lt;SPAN class="" style="color: #881391;"&gt;isGeographic&lt;/SPAN&gt;&lt;SPAN class="" style="padding-right: 5px;"&gt;:&lt;/SPAN&gt;&lt;SPAN class="" style="color: #0d22aa;"&gt;true&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN class="" style="color: #881391;"&gt;isWGS84&lt;/SPAN&gt;&lt;SPAN class="" style="padding-right: 5px;"&gt;:&lt;/SPAN&gt;&lt;SPAN class="" style="color: #0d22aa;"&gt;true&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN class="" style="color: #881391;"&gt;isWebMercator&lt;/SPAN&gt;&lt;SPAN class="" style="padding-right: 5px;"&gt;:&lt;/SPAN&gt;&lt;SPAN class="" style="color: #0d22aa;"&gt;false&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN class="" style="color: #881391;"&gt;isWrappable&lt;/SPAN&gt;&lt;SPAN class="" style="padding-right: 5px;"&gt;:&lt;/SPAN&gt;&lt;SPAN class="" style="color: #0d22aa;"&gt;true&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN class="" style="color: #881391;"&gt;latestVcsWkid&lt;/SPAN&gt;&lt;SPAN class="" style="padding-right: 5px;"&gt;:&lt;/SPAN&gt;&lt;SPAN class="" style="color: #808080;"&gt;undefined&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN class="" style="color: #881391;"&gt;latestWkid&lt;/SPAN&gt;&lt;SPAN class="" style="padding-right: 5px;"&gt;:&lt;/SPAN&gt;&lt;SPAN class="" style="color: #808080;"&gt;null&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN class="" style="color: #881391;"&gt;vcsWkid&lt;/SPAN&gt;&lt;SPAN class="" style="padding-right: 5px;"&gt;:&lt;/SPAN&gt;&lt;SPAN class="" style="color: #808080;"&gt;undefined&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN class="" style="color: #881391;"&gt;wkid&lt;/SPAN&gt;&lt;SPAN class="" style="padding-right: 5px;"&gt;:&lt;/SPAN&gt;&lt;SPAN class="" style="color: #1c00cf;"&gt;4326&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN class="" style="color: #881391;"&gt;wkt&lt;/SPAN&gt;&lt;SPAN class="" style="padding-right: 5px;"&gt;:&lt;/SPAN&gt;&lt;SPAN&gt;&lt;SPAN class=""&gt;(...)&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;**ignore the changes in the x, and y coordinates, I had to draw the area of interest on the map again after refreshing the application**&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to be able to normalize the coordinates so I wanted to use the normalizeCentralMeridian() method (&lt;A class="link-titled" href="https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-support-normalizeUtils.html" title="https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-support-normalizeUtils.html"&gt;normalizeUtils | API Reference | ArcGIS API for JavaScript 4.6&lt;/A&gt;) but I get an error on the 3rd line of the code above with the message:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;before normalizeUtils.normalizeCentralMeridian()&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Uncaught TypeError: Cannot read property 'wkid' of undefined&lt;BR /&gt; at Object.f.getInfo (dojo.js:476)&lt;BR /&gt; at dojo.js:1291&lt;BR /&gt; at Object.forEach (dojo.js:126)&lt;BR /&gt; at Object.normalizeCentralMeridian (dojo.js:1291)&lt;BR /&gt; at Object.&amp;lt;anonymous&amp;gt; (TfdmMapCtrl.js:732)&lt;BR /&gt; at Object.e [as ondraw-end] (dojo.js:64)&lt;BR /&gt; at Function.d.emit (dojo.js:51)&lt;BR /&gt; at Function.d.emit (dojo.js:53)&lt;BR /&gt; at Object.emit (dojo.js:62)&lt;BR /&gt; at Object._end (DrawExtent.js:175)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When you look at the reference page for normalizeUtils, it can take an argument of type Extent because it is a subclass of type Geometry. the wkid property is part of the SpatialReference object but even if I add a wkid property (by doing genoms.wkid = 4326) I get the same error as above.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Has anyone else encountered this issue and can help. Thank you so much!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 11 Apr 2018 19:34:09 GMT</pubDate>
    <dc:creator>MansiShah</dc:creator>
    <dc:date>2018-04-11T19:34:09Z</dc:date>
    <item>
      <title>Trouble with normalUtils/normalizeCentralMeridian()</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/trouble-with-normalutils-normalizecentralmeridian/m-p/751716#M69504</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am trying to use the normalizeCentralMeridian method to normalize the coordinates over dateline. I have the following code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;var rings = JSON.stringify(evt.geometry.rings);&lt;/P&gt;&lt;P&gt;var genoms = new Extent(evt.geometry.rings);&amp;nbsp; //I have also tested making genoms of type new Geometry with the same //outcome&lt;/P&gt;&lt;P&gt;console.log("genoms: ", genoms);&lt;/P&gt;&lt;P&gt;console.log("before normalizeUtils.normalizeCentralMeridian()");&lt;/P&gt;&lt;P&gt;console.log(normalizeUtils.normalizeCentralMeridian(geoms);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;evt.geometry.rings is an array object. Printing it out gives me the following:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;[[[-232.56299422870526,37.89843860927253],[-232.35205659066006,37.89843860927253],[-232.35205659066006,37.766602669313315],[-232.56299422870526,37.766602669313315],[-232.56299422870526,37.89843860927253]]]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Printing out genoms gives me the following:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;OL class="" style="color: #212121 !important; font-size: 12px;"&gt;&lt;LI class=""&gt;&lt;OL class="" style="padding-left: 12px;"&gt;&lt;LI class=""&gt;&lt;SPAN class=""&gt;Array(5)&lt;/SPAN&gt;&lt;OL class="" style="padding-left: 12px;"&gt;&lt;LI class=""&gt;&lt;SPAN class="" style="color: #881391;"&gt;0&lt;/SPAN&gt;&lt;SPAN class="" style="padding-right: 5px;"&gt;:&lt;/SPAN&gt;&lt;SPAN class=""&gt;&lt;SPAN class="" style="color: gray;"&gt;(2)&amp;nbsp;&lt;/SPAN&gt;[&lt;SPAN class="" style="color: #1c00cf;"&gt;-231.97361670477855&lt;/SPAN&gt;,&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="" style="color: #1c00cf;"&gt;37.030176591569784&lt;/SPAN&gt;]&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI class=""&gt;&lt;SPAN class="" style="color: #881391;"&gt;1&lt;/SPAN&gt;&lt;SPAN class="" style="padding-right: 5px;"&gt;:&lt;/SPAN&gt;&lt;SPAN class=""&gt;&lt;SPAN class="" style="color: gray;"&gt;(2)&amp;nbsp;&lt;/SPAN&gt;[&lt;SPAN class="" style="color: #1c00cf;"&gt;-231.55174142868816&lt;/SPAN&gt;,&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="" style="color: #1c00cf;"&gt;37.030176591569784&lt;/SPAN&gt;]&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI class=""&gt;&lt;SPAN class="" style="color: #881391;"&gt;2&lt;/SPAN&gt;&lt;SPAN class="" style="padding-right: 5px;"&gt;:&lt;/SPAN&gt;&lt;SPAN class=""&gt;&lt;SPAN class="" style="color: gray;"&gt;(2)&amp;nbsp;&lt;/SPAN&gt;[&lt;SPAN class="" style="color: #1c00cf;"&gt;-231.55174142868816&lt;/SPAN&gt;,&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="" style="color: #1c00cf;"&gt;36.907130250716335&lt;/SPAN&gt;]&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI class=""&gt;&lt;SPAN class="" style="color: #881391;"&gt;3&lt;/SPAN&gt;&lt;SPAN class="" style="padding-right: 5px;"&gt;:&lt;/SPAN&gt;&lt;SPAN class=""&gt;&lt;SPAN class="" style="color: gray;"&gt;(2)&amp;nbsp;&lt;/SPAN&gt;[&lt;SPAN class="" style="color: #1c00cf;"&gt;-231.97361670477855&lt;/SPAN&gt;,&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="" style="color: #1c00cf;"&gt;36.907130250716335&lt;/SPAN&gt;]&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI class=""&gt;&lt;SPAN class="" style="color: #881391;"&gt;4&lt;/SPAN&gt;&lt;SPAN class="" style="padding-right: 5px;"&gt;:&lt;/SPAN&gt;&lt;SPAN class=""&gt;&lt;SPAN class="" style="color: gray;"&gt;(2)&amp;nbsp;&lt;/SPAN&gt;[&lt;SPAN class="" style="color: #1c00cf;"&gt;-231.97361670477855&lt;/SPAN&gt;,&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="" style="color: #1c00cf;"&gt;37.030176591569784&lt;/SPAN&gt;]&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN class="" style="color: #881391;"&gt;length&lt;/SPAN&gt;&lt;SPAN class="" style="padding-right: 5px;"&gt;:&lt;/SPAN&gt;&lt;SPAN class="" style="color: #1c00cf;"&gt;5&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI class=""&gt;&lt;SPAN class="" style="color: #881391;"&gt;__proto__&lt;/SPAN&gt;&lt;SPAN class="" style="padding-right: 5px;"&gt;:&lt;/SPAN&gt;&lt;SPAN class=""&gt;Array(0)&lt;/SPAN&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN class="" style="color: #881391;"&gt;cache&lt;/SPAN&gt;&lt;SPAN class="" style="padding-right: 5px;"&gt;:&lt;/SPAN&gt;&lt;SPAN&gt;&lt;SPAN class=""&gt;(...)&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN class="" style="color: #881391;"&gt;center&lt;/SPAN&gt;&lt;SPAN class="" style="padding-right: 5px;"&gt;:&lt;/SPAN&gt;&lt;SPAN&gt;&lt;SPAN class=""&gt;(...)&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN class="" style="color: #881391;"&gt;extent&lt;/SPAN&gt;&lt;SPAN class="" style="padding-right: 5px;"&gt;:&lt;/SPAN&gt;&lt;SPAN&gt;&lt;SPAN class=""&gt;(...)&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN class="" style="color: #881391;"&gt;hasM&lt;/SPAN&gt;&lt;SPAN class="" style="padding-right: 5px;"&gt;:&lt;/SPAN&gt;&lt;SPAN&gt;&lt;SPAN class=""&gt;(...)&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN class="" style="color: #881391;"&gt;hasZ&lt;/SPAN&gt;&lt;SPAN class="" style="padding-right: 5px;"&gt;:&lt;/SPAN&gt;&lt;SPAN&gt;&lt;SPAN class=""&gt;(...)&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN class="" style="color: #881391;"&gt;height&lt;/SPAN&gt;&lt;SPAN class="" style="padding-right: 5px;"&gt;:&lt;/SPAN&gt;&lt;SPAN&gt;&lt;SPAN class=""&gt;(...)&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN class="" style="color: #881391;"&gt;length&lt;/SPAN&gt;&lt;SPAN class="" style="padding-right: 5px;"&gt;:&lt;/SPAN&gt;&lt;SPAN class="" style="color: #1c00cf;"&gt;1&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN class="" style="color: #881391;"&gt;mmax&lt;/SPAN&gt;&lt;SPAN class="" style="padding-right: 5px;"&gt;:&lt;/SPAN&gt;&lt;SPAN&gt;&lt;SPAN class=""&gt;(...)&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN class="" style="color: #881391;"&gt;mmin&lt;/SPAN&gt;&lt;SPAN class="" style="padding-right: 5px;"&gt;:&lt;/SPAN&gt;&lt;SPAN&gt;&lt;SPAN class=""&gt;(...)&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI class=""&gt;&lt;SPAN class="" style="color: #881391;"&gt;spatialReference&lt;/SPAN&gt;&lt;SPAN class="" style="padding-right: 5px;"&gt;:&lt;/SPAN&gt;&lt;SPAN class=""&gt;Object&lt;/SPAN&gt;&lt;OL class="" style="padding-left: 12px;"&gt;&lt;LI&gt;&lt;SPAN class="" style="color: #881391;"&gt;isGeographic&lt;/SPAN&gt;&lt;SPAN class="" style="padding-right: 5px;"&gt;:&lt;/SPAN&gt;&lt;SPAN class="" style="color: #0d22aa;"&gt;true&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN class="" style="color: #881391;"&gt;isWGS84&lt;/SPAN&gt;&lt;SPAN class="" style="padding-right: 5px;"&gt;:&lt;/SPAN&gt;&lt;SPAN class="" style="color: #0d22aa;"&gt;true&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN class="" style="color: #881391;"&gt;isWebMercator&lt;/SPAN&gt;&lt;SPAN class="" style="padding-right: 5px;"&gt;:&lt;/SPAN&gt;&lt;SPAN class="" style="color: #0d22aa;"&gt;false&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN class="" style="color: #881391;"&gt;isWrappable&lt;/SPAN&gt;&lt;SPAN class="" style="padding-right: 5px;"&gt;:&lt;/SPAN&gt;&lt;SPAN class="" style="color: #0d22aa;"&gt;true&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN class="" style="color: #881391;"&gt;latestVcsWkid&lt;/SPAN&gt;&lt;SPAN class="" style="padding-right: 5px;"&gt;:&lt;/SPAN&gt;&lt;SPAN class="" style="color: #808080;"&gt;undefined&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN class="" style="color: #881391;"&gt;latestWkid&lt;/SPAN&gt;&lt;SPAN class="" style="padding-right: 5px;"&gt;:&lt;/SPAN&gt;&lt;SPAN class="" style="color: #808080;"&gt;null&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN class="" style="color: #881391;"&gt;vcsWkid&lt;/SPAN&gt;&lt;SPAN class="" style="padding-right: 5px;"&gt;:&lt;/SPAN&gt;&lt;SPAN class="" style="color: #808080;"&gt;undefined&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN class="" style="color: #881391;"&gt;wkid&lt;/SPAN&gt;&lt;SPAN class="" style="padding-right: 5px;"&gt;:&lt;/SPAN&gt;&lt;SPAN class="" style="color: #1c00cf;"&gt;4326&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN class="" style="color: #881391;"&gt;wkt&lt;/SPAN&gt;&lt;SPAN class="" style="padding-right: 5px;"&gt;:&lt;/SPAN&gt;&lt;SPAN&gt;&lt;SPAN class=""&gt;(...)&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;**ignore the changes in the x, and y coordinates, I had to draw the area of interest on the map again after refreshing the application**&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to be able to normalize the coordinates so I wanted to use the normalizeCentralMeridian() method (&lt;A class="link-titled" href="https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-support-normalizeUtils.html" title="https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-support-normalizeUtils.html"&gt;normalizeUtils | API Reference | ArcGIS API for JavaScript 4.6&lt;/A&gt;) but I get an error on the 3rd line of the code above with the message:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;before normalizeUtils.normalizeCentralMeridian()&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Uncaught TypeError: Cannot read property 'wkid' of undefined&lt;BR /&gt; at Object.f.getInfo (dojo.js:476)&lt;BR /&gt; at dojo.js:1291&lt;BR /&gt; at Object.forEach (dojo.js:126)&lt;BR /&gt; at Object.normalizeCentralMeridian (dojo.js:1291)&lt;BR /&gt; at Object.&amp;lt;anonymous&amp;gt; (TfdmMapCtrl.js:732)&lt;BR /&gt; at Object.e [as ondraw-end] (dojo.js:64)&lt;BR /&gt; at Function.d.emit (dojo.js:51)&lt;BR /&gt; at Function.d.emit (dojo.js:53)&lt;BR /&gt; at Object.emit (dojo.js:62)&lt;BR /&gt; at Object._end (DrawExtent.js:175)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When you look at the reference page for normalizeUtils, it can take an argument of type Extent because it is a subclass of type Geometry. the wkid property is part of the SpatialReference object but even if I add a wkid property (by doing genoms.wkid = 4326) I get the same error as above.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Has anyone else encountered this issue and can help. Thank you so much!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Apr 2018 19:34:09 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/trouble-with-normalutils-normalizecentralmeridian/m-p/751716#M69504</guid>
      <dc:creator>MansiShah</dc:creator>
      <dc:date>2018-04-11T19:34:09Z</dc:date>
    </item>
  </channel>
</rss>

