<?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: Warnings thrown by SketchViewModel on every mouse move when using uncommon spatial references in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/warnings-thrown-by-sketchviewmodel-on-every-mouse/m-p/1095047#M74540</link>
    <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/12939"&gt;@NicoleSulzberger&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;Yes, I see it was still reproducible with the reshape operation in 4.20. It was fixed in create mode, but not in reshape. This is a good find. I just tested with the latest cdn build and it seems to be resolved with both create and reshape. Can you confirm with this cdn?&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;EM&gt;"&lt;A href="https://js.arcgis.com/next/" target="_blank"&gt;https://js.arcgis.com/next/&lt;/A&gt;"&lt;/EM&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Thanks,&lt;/DIV&gt;&lt;DIV&gt;Jose&lt;/DIV&gt;&lt;/DIV&gt;</description>
    <pubDate>Thu, 02 Sep 2021 18:29:25 GMT</pubDate>
    <dc:creator>JoseBanuelos</dc:creator>
    <dc:date>2021-09-02T18:29:25Z</dc:date>
    <item>
      <title>Warnings thrown by SketchViewModel on every mouse move when using uncommon spatial references</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/warnings-thrown-by-sketchviewmodel-on-every-mouse/m-p/1066200#M73435</link>
      <description>&lt;P&gt;When the &lt;EM&gt;SketchViewMode&lt;/EM&gt;l is active, every time I move the mouse pointer I get the following warning on the browser console:&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;P&gt;&lt;STRONG&gt;[esri.geometry.Point] .latitude= Longitude was defined without latitude&lt;/STRONG&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;The mouse move event is fired very frequently, so after a few seconds you can end up with thousands of warnings. I'd rather get rid of this behavior if possible.&lt;/P&gt;&lt;P&gt;I have noticed that the warnings only appear if you use uncommon spatial references such as 2157 or 26711, while no warnings appear with other more familiar spatial references such as 4326 or 102100. I also noticed that when the warnings appear, the points get proper values for &lt;EM&gt;x&lt;/EM&gt; and &lt;EM&gt;y&lt;/EM&gt; but odd values for &lt;EM&gt;latitude&lt;/EM&gt; and &lt;EM&gt;longitude&lt;/EM&gt;:&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;P&gt;latitude: null&lt;BR /&gt;longitude: NaN&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;I'm using the ArcGIS API for JavaScript 4.19. You can find a CodePen &lt;A href="https://codepen.io/javierl/pen/yLMqXEg" target="_blank" rel="noopener"&gt;here&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;&amp;lt;html&amp;gt;

&amp;lt;head&amp;gt;
  &amp;lt;meta charset="utf-8" /&amp;gt;
  &amp;lt;meta name="viewport" content="initial-scale=1,maximum-scale=1,user-scalable=no" /&amp;gt;
  &amp;lt;title&amp;gt;Sketch widget | Sample | ArcGIS API for JavaScript 4.19&amp;lt;/title&amp;gt;

  &amp;lt;link rel="stylesheet" href="https://js.arcgis.com/4.19/esri/themes/light/main.css" /&amp;gt;
  &amp;lt;script src="https://js.arcgis.com/4.19/"&amp;gt;&amp;lt;/script&amp;gt;

  &amp;lt;style&amp;gt;
    html,
    body,
    #viewDiv {
      padding: 0;
      margin: 0;
      height: 100%;
      width: 100%;
    }
  &amp;lt;/style&amp;gt;
  &amp;lt;script&amp;gt;
    require([
      "esri/Map",
      "esri/views/MapView",
      "esri/layers/GraphicsLayer",
      "esri/layers/MapImageLayer",
      "esri/widgets/Sketch/SketchViewModel"
    ], (Map, MapView, GraphicsLayer, MapImageLayer, SketchViewModel) =&amp;gt; {

      const mapImageLayer = new MapImageLayer({
        url: "http://sampleserver6.arcgisonline.com/arcgis/rest/services/VerticalLines/MapServer"
      }); 
    
      const graphicsLayer = new GraphicsLayer();

      const map = new Map({
        layers: [mapImageLayer, graphicsLayer]
      });

      const view = new MapView({
        container: "viewDiv",
        map: map,
        scale: 75000
      });

      view.when(() =&amp;gt; {
        const sketch = new SketchViewModel({
          layer: graphicsLayer,
          view: view,
          defaultCreateOptions: { hasZ: false }
        });
        
        sketch.create("point");
        sketch.on("create", evt =&amp;gt; {
          if (evt.state === "complete") {
            console.log(evt);
          }
        });
      });
    });
  &amp;lt;/script&amp;gt;
&amp;lt;/head&amp;gt;

&amp;lt;body&amp;gt;
  &amp;lt;div id="viewDiv"&amp;gt;&amp;lt;/div&amp;gt;
&amp;lt;/body&amp;gt;
&amp;lt;/html&amp;gt;&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 08 Jun 2021 22:19:33 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/warnings-thrown-by-sketchviewmodel-on-every-mouse/m-p/1066200#M73435</guid>
      <dc:creator>ljlopez</dc:creator>
      <dc:date>2021-06-08T22:19:33Z</dc:date>
    </item>
    <item>
      <title>Re: Warnings thrown by SketchViewModel on every mouse move when using uncommon spatial references</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/warnings-thrown-by-sketchviewmodel-on-every-mouse/m-p/1066735#M73447</link>
      <description>&lt;P&gt;I am also seeing this issue&lt;/P&gt;</description>
      <pubDate>Thu, 10 Jun 2021 03:02:52 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/warnings-thrown-by-sketchviewmodel-on-every-mouse/m-p/1066735#M73447</guid>
      <dc:creator>Stacy-Rendall</dc:creator>
      <dc:date>2021-06-10T03:02:52Z</dc:date>
    </item>
    <item>
      <title>Re: Warnings thrown by SketchViewModel on every mouse move when using uncommon spatial references</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/warnings-thrown-by-sketchviewmodel-on-every-mouse/m-p/1068676#M73508</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;There was a bug logged for this in 4.19 (BUG-000139631), and we are working on getting this resolved for 4.20.&lt;/P&gt;&lt;P&gt;Thanks,&lt;BR /&gt;Jose&lt;/P&gt;</description>
      <pubDate>Tue, 15 Jun 2021 22:45:53 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/warnings-thrown-by-sketchviewmodel-on-every-mouse/m-p/1068676#M73508</guid>
      <dc:creator>JoseBanuelos</dc:creator>
      <dc:date>2021-06-15T22:45:53Z</dc:date>
    </item>
    <item>
      <title>Re: Warnings thrown by SketchViewModel on every mouse move when using uncommon spatial references</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/warnings-thrown-by-sketchviewmodel-on-every-mouse/m-p/1091255#M74374</link>
      <description>&lt;P&gt;HI &lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/349741"&gt;@JoseBanuelos&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I still have this issue with 4.20.2 and EPSG:2056 (Swiss projection). Is this a known issue?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 23 Aug 2021 15:06:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/warnings-thrown-by-sketchviewmodel-on-every-mouse/m-p/1091255#M74374</guid>
      <dc:creator>NicoleSulzberger</dc:creator>
      <dc:date>2021-08-23T15:06:56Z</dc:date>
    </item>
    <item>
      <title>Re: Warnings thrown by SketchViewModel on every mouse move when using uncommon spatial references</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/warnings-thrown-by-sketchviewmodel-on-every-mouse/m-p/1091334#M74383</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/12939"&gt;@NicoleSulzberger&lt;/a&gt;&amp;nbsp;,&lt;BR /&gt;Can you provide an example of a simple reproducible sample? I just tested EPSG:2056 and could not repro. If I revert back to 4.19 I can repro, but at 4.20 I don't see this.&lt;/P&gt;</description>
      <pubDate>Mon, 23 Aug 2021 18:25:24 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/warnings-thrown-by-sketchviewmodel-on-every-mouse/m-p/1091334#M74383</guid>
      <dc:creator>JoseBanuelos</dc:creator>
      <dc:date>2021-08-23T18:25:24Z</dc:date>
    </item>
    <item>
      <title>Re: Warnings thrown by SketchViewModel on every mouse move when using uncommon spatial references</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/warnings-thrown-by-sketchviewmodel-on-every-mouse/m-p/1094469#M74508</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/349741"&gt;@JoseBanuelos&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Sorry for being so late &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Here is my example:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://codepen.io/nsulzberger/pen/ExXKEpx?editors=1000" target="_blank"&gt;https://codepen.io/nsulzberger/pen/ExXKEpx?editors=1000&lt;/A&gt;&lt;/P&gt;&lt;P&gt;bye, Nicole&lt;/P&gt;</description>
      <pubDate>Wed, 01 Sep 2021 16:09:49 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/warnings-thrown-by-sketchviewmodel-on-every-mouse/m-p/1094469#M74508</guid>
      <dc:creator>NicoleSulzberger</dc:creator>
      <dc:date>2021-09-01T16:09:49Z</dc:date>
    </item>
    <item>
      <title>Re: Warnings thrown by SketchViewModel on every mouse move when using uncommon spatial references</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/warnings-thrown-by-sketchviewmodel-on-every-mouse/m-p/1095005#M74538</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/12939"&gt;@NicoleSulzberger&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;I cannot see the warning message from this issue on this sample you provided. I don't see the following warning message&lt;/P&gt;&lt;P&gt;&lt;EM&gt;[esri.geometry.Point] .latitude= Longitude was defined without latitude&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;If you change the version to 4.19, you will be able to see the warning message, but you won't be able to see it at 4.20. Are you still seeing this message? If you are, what browser are you using and what version?&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Jose&lt;/P&gt;</description>
      <pubDate>Thu, 02 Sep 2021 17:13:30 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/warnings-thrown-by-sketchviewmodel-on-every-mouse/m-p/1095005#M74538</guid>
      <dc:creator>JoseBanuelos</dc:creator>
      <dc:date>2021-09-02T17:13:30Z</dc:date>
    </item>
    <item>
      <title>Re: Warnings thrown by SketchViewModel on every mouse move when using uncommon spatial references</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/warnings-thrown-by-sketchviewmodel-on-every-mouse/m-p/1095018#M74539</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/349741"&gt;@JoseBanuelos&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;I am using Chrome on Windows:&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Google Chrome ist auf dem neuesten Stand.&lt;BR /&gt;Version 93.0.4577.63 (Offizieller Build) (64-Bit)&lt;/P&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;</description>
      <pubDate>Thu, 02 Sep 2021 17:28:35 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/warnings-thrown-by-sketchviewmodel-on-every-mouse/m-p/1095018#M74539</guid>
      <dc:creator>NicoleSulzberger</dc:creator>
      <dc:date>2021-09-02T17:28:35Z</dc:date>
    </item>
    <item>
      <title>Re: Warnings thrown by SketchViewModel on every mouse move when using uncommon spatial references</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/warnings-thrown-by-sketchviewmodel-on-every-mouse/m-p/1095047#M74540</link>
      <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/12939"&gt;@NicoleSulzberger&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;Yes, I see it was still reproducible with the reshape operation in 4.20. It was fixed in create mode, but not in reshape. This is a good find. I just tested with the latest cdn build and it seems to be resolved with both create and reshape. Can you confirm with this cdn?&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;EM&gt;"&lt;A href="https://js.arcgis.com/next/" target="_blank"&gt;https://js.arcgis.com/next/&lt;/A&gt;"&lt;/EM&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Thanks,&lt;/DIV&gt;&lt;DIV&gt;Jose&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Thu, 02 Sep 2021 18:29:25 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/warnings-thrown-by-sketchviewmodel-on-every-mouse/m-p/1095047#M74540</guid>
      <dc:creator>JoseBanuelos</dc:creator>
      <dc:date>2021-09-02T18:29:25Z</dc:date>
    </item>
    <item>
      <title>Re: Warnings thrown by SketchViewModel on every mouse move when using uncommon spatial references</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/warnings-thrown-by-sketchviewmodel-on-every-mouse/m-p/1095066#M74541</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/349741"&gt;@JoseBanuelos&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;Yes, it looks fine with this version. Thanks a lot for the deeper investigation!&lt;/P&gt;&lt;P&gt;bye, Nicole&lt;/P&gt;</description>
      <pubDate>Thu, 02 Sep 2021 19:02:30 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/warnings-thrown-by-sketchviewmodel-on-every-mouse/m-p/1095066#M74541</guid>
      <dc:creator>NicoleSulzberger</dc:creator>
      <dc:date>2021-09-02T19:02:30Z</dc:date>
    </item>
  </channel>
</rss>

