<?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 image in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/setmapcursor-with-custom-image/m-p/214876#M19890</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;No replies yet. Has anyone tried this?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Paul&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 27 Feb 2014 14:17:29 GMT</pubDate>
    <dc:creator>PaulHuppé</dc:creator>
    <dc:date>2014-02-27T14:17:29Z</dc:date>
    <item>
      <title>setMapCursor with custom image</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/setmapcursor-with-custom-image/m-p/214875#M19889</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I want to change the cursor to use a custom image. When I use something like:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;mymap.setMapCursor("crosshair");&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I see a crosshair icon on the map.&amp;nbsp; If I try the following:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;mymap.setMapCursor("url(/myproject/images/mycursor.png),auto");&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;it does nor change the cursor. Why? I tried a PNG, a GIF and a CUR file with no success.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;As anyone used a custom image for a cursor?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Paul&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Feb 2014 11:28:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/setmapcursor-with-custom-image/m-p/214875#M19889</guid>
      <dc:creator>PaulHuppé</dc:creator>
      <dc:date>2014-02-25T11:28:56Z</dc:date>
    </item>
    <item>
      <title>Re: setMapCursor with custom image</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/setmapcursor-with-custom-image/m-p/214876#M19890</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;No replies yet. Has anyone tried this?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Paul&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Feb 2014 14:17:29 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/setmapcursor-with-custom-image/m-p/214876#M19890</guid>
      <dc:creator>PaulHuppé</dc:creator>
      <dc:date>2014-02-27T14:17:29Z</dc:date>
    </item>
    <item>
      <title>Re: setMapCursor with custom image</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/setmapcursor-with-custom-image/m-p/214877#M19891</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Paul,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I have not used the setMapCursor method but have had the success with setting cursor on the map container node.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;brian&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; //set cursor so users know what is going on when the use the mouse wheel!
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var mapNode = dom.byId("map_container");
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; on(map, 'zoom', function(e){
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if(e.zoomFactor &amp;gt;= 1) { //scroll in
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; domStyle.set(mapNode,{"cursor": "url(js/images/zoom-in.gif), url(js/images/zoom-in.ico), auto"});
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; } else if (e.zoomFactor &amp;lt; 1) { //scroll out
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; domStyle.set(mapNode,{"cursor": "url(js/images/zoom-out.gif), url(js/images/zoom-out.ico), auto"});
&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; 
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; on(map, 'zoom-end', function(e){
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; domStyle.set(mapNode,{"cursor": "default"});
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; });&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 10:32:01 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/setmapcursor-with-custom-image/m-p/214877#M19891</guid>
      <dc:creator>bbieb</dc:creator>
      <dc:date>2021-12-11T10:32:01Z</dc:date>
    </item>
    <item>
      <title>Re: setMapCursor with custom image</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/setmapcursor-with-custom-image/m-p/214878#M19892</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Brian,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I just tried with:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var mapNode = dom.byId(mapid + "_holder_container");
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; domStyle.set(mapNode,{"cursor": "crosshair"});
&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;which changes the cursor to a small crosshair as expected, and with&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var mapNode = dom.byId(mapid + "_holder_container");
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; domStyle.set(mapNode,{"cursor": "url(http://geogratis.gc.ca/geogratis/images/crosshairs.gif), auto"});
&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;which should have used the image, but it does not.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 10:32:04 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/setmapcursor-with-custom-image/m-p/214878#M19892</guid>
      <dc:creator>PaulHuppé</dc:creator>
      <dc:date>2021-12-11T10:32:04Z</dc:date>
    </item>
    <item>
      <title>Re: setMapCursor with custom image</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/setmapcursor-with-custom-image/m-p/214879#M19893</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Paul,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I did try with your url and it didn't work.&amp;nbsp; Your gif is 5000x5000 pixels, I think that is the problem.&amp;nbsp; I do see it coming back to the browser but not displaying.&amp;nbsp; I created a 25x25 pixel red gif and tried again. It worked as expected.&amp;nbsp; I did Google cursor size and Firefox ignores anything over 128x128 pixels.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;brian&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Feb 2014 12:35:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/setmapcursor-with-custom-image/m-p/214879#M19893</guid>
      <dc:creator>bbieb</dc:creator>
      <dc:date>2014-02-28T12:35:41Z</dc:date>
    </item>
    <item>
      <title>Re: setMapCursor with custom image</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/setmapcursor-with-custom-image/m-p/214880#M19894</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Brian,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Ok, maybe it is the size. I did not know there was a size limit. My user wanted crosshairs that would cover the whole map from top to bottom and side to side.&amp;nbsp; That is why I had created this large image.&amp;nbsp; I wonder if there is a way to achieve this?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Paul&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Feb 2014 12:48:14 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/setmapcursor-with-custom-image/m-p/214880#M19894</guid>
      <dc:creator>PaulHuppé</dc:creator>
      <dc:date>2014-02-28T12:48:14Z</dc:date>
    </item>
    <item>
      <title>Re: setMapCursor with custom image</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/setmapcursor-with-custom-image/m-p/214881#M19895</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I just tried making a new cursor that is 128x128 pixels and that works.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Paul&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Feb 2014 14:30:02 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/setmapcursor-with-custom-image/m-p/214881#M19895</guid>
      <dc:creator>PaulHuppé</dc:creator>
      <dc:date>2014-02-28T14:30:02Z</dc:date>
    </item>
    <item>
      <title>Re: setMapCursor with custom image</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/setmapcursor-with-custom-image/m-p/214882#M19896</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Here is a jQuery example to have full screen crosshairs.&amp;nbsp; I could see this being of value.&amp;nbsp; Google&amp;nbsp; "crosshair full screen javascript" for other examples.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;brian&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://jsfiddle.net/j08691/9DRxT/1/"&gt;http://jsfiddle.net/j08691/9DRxT/1/&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Feb 2014 14:42:50 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/setmapcursor-with-custom-image/m-p/214882#M19896</guid>
      <dc:creator>bbieb</dc:creator>
      <dc:date>2014-02-28T14:42:50Z</dc:date>
    </item>
    <item>
      <title>Re: setMapCursor with custom image</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/setmapcursor-with-custom-image/m-p/214883#M19897</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Paul,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Don't forget to click the check mark in the post that best answered your question. This will help others searching on this topic.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Feb 2014 17:23:03 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/setmapcursor-with-custom-image/m-p/214883#M19897</guid>
      <dc:creator>KenBuja</dc:creator>
      <dc:date>2014-02-28T17:23:03Z</dc:date>
    </item>
  </channel>
</rss>

