<?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: setMapCursor with custom cursor not working in IE and Edge in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/setmapcursor-with-custom-cursor-not-working-in-ie/m-p/386307#M35674</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Joel!&amp;nbsp; I ended up just using one of the system cursors instead of a custom one, but I'll try changing the format like you suggested if I get a chance one of these days.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 07 Oct 2015 14:12:53 GMT</pubDate>
    <dc:creator>MarkRubelmann</dc:creator>
    <dc:date>2015-10-07T14:12:53Z</dc:date>
    <item>
      <title>setMapCursor with custom cursor not working in IE and Edge</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/setmapcursor-with-custom-cursor-not-working-in-ie/m-p/386305#M35672</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm developing a custom widget for Web AppBuilder 1.2 and I'm using the setMapCursor() function to display a custom mouse cursor.&amp;nbsp; It works perfectly in Chrome and Firefox, but unfortunately it's not doing anything in IE 9, IE 11, or Edge.&amp;nbsp; The code looks like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; var COMPASS_CURSOR = 'url(widgets/test/css/images/compass_cursor.png), auto';
&amp;nbsp;&amp;nbsp;&amp;nbsp; var DEFAULT_CURSOR = 'auto';

&amp;nbsp;&amp;nbsp;&amp;nbsp; return declare([BaseWidget, WidgetsInTemplateMixin], {

&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // Lots of stuff here...

&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; updateMapCursor: function () {
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if (this.isSelectLocationToolEnabled()) {
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; this.map.setMapCursor(COMPASS_CURSOR);
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; } else {
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; this.map.setMapCursor(DEFAULT_CURSOR);
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I change COMPASS_CURSOR to one of the standard cursors ("wait", for instance), it changes to the correct cursor.&amp;nbsp; It just doesn't seem to like custom cursors.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've also tried using this.map.setCursor(), which I'm guessing does the same exact thing as setMapCursor() because it also works on Chrome and Firefox but not IE and Edge.&amp;nbsp; Am I doing something wrong?&amp;nbsp; Is this just not supported on IE and Edge?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Mark&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 17:45:16 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/setmapcursor-with-custom-cursor-not-working-in-ie/m-p/386305#M35672</guid>
      <dc:creator>MarkRubelmann</dc:creator>
      <dc:date>2021-12-11T17:45:16Z</dc:date>
    </item>
    <item>
      <title>Re: setMapCursor with custom cursor not working in IE and Edge</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/setmapcursor-with-custom-cursor-not-working-in-ie/m-p/386306#M35673</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It's been awhile since you posted this, and you may have already figured it out.&amp;nbsp; For posterity, though, I believe the problem here is that IE only supports custom cursors in .cur and .ani format (not .png).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;See also: &lt;A href="https://msdn.microsoft.com/en-us/library/aa358795(v=vs.85).aspx" title="https://msdn.microsoft.com/en-us/library/aa358795(v=vs.85).aspx"&gt;cursor property (Internet Explorer)&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Sep 2015 17:31:01 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/setmapcursor-with-custom-cursor-not-working-in-ie/m-p/386306#M35673</guid>
      <dc:creator>JoelBennett</dc:creator>
      <dc:date>2015-09-24T17:31:01Z</dc:date>
    </item>
    <item>
      <title>Re: setMapCursor with custom cursor not working in IE and Edge</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/setmapcursor-with-custom-cursor-not-working-in-ie/m-p/386307#M35674</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Joel!&amp;nbsp; I ended up just using one of the system cursors instead of a custom one, but I'll try changing the format like you suggested if I get a chance one of these days.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Oct 2015 14:12:53 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/setmapcursor-with-custom-cursor-not-working-in-ie/m-p/386307#M35674</guid>
      <dc:creator>MarkRubelmann</dc:creator>
      <dc:date>2015-10-07T14:12:53Z</dc:date>
    </item>
  </channel>
</rss>

