<?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: Changing a Sprite in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/changing-a-sprite/m-p/151472#M14078</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;This graphic is sort of "hidden." It is streamed from the API and can be found &lt;/SPAN&gt;&lt;A href="http://serverapi.arcgisonline.com/jsapi/arcgis/1.5/images/map/fixed-pan-sprite.png" rel="nofollow noopener noreferrer" target="_blank"&gt;here&lt;/A&gt;&lt;SPAN&gt;. A sprite is one smaller piece of a larger hidden graphic that is loaded when the page is loaded. The API uses some fancy CSS to call up one part of the larger image, usually for use as an icon. Use the Net / Images view from the Firebug add-on for Firefox to see all of the images loaded from the API.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;An easier way to customize your pan buttons may be to use &lt;/SPAN&gt;&lt;A href="http://resources.esri.com/help/9.3/arcgisserver/apis/javascript/arcgis/help/jssamples_start.htm" rel="nofollow noopener noreferrer" target="_blank"&gt;this&lt;/A&gt;&lt;SPAN&gt; ESRI sample. This allows you to use your own graphics, and your own placement on the page. You could even make one image map (one graphic with four arrows) with hotspots for map.panDown(), map.panLeft(), etc.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Or you could override the CSS for that sprite. That would be added to &amp;lt;style&amp;gt; in the html heading, or in your seperate CSS file. It would look something like this:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&amp;lt;style type="text/css"&amp;gt; 
.map .container .fixedPan {
 background-image:url("fixed-pan-sprite.png");
 cursor:pointer;
 height:15px;
 overflow:hidden;
 position:absolute;
 width:15px;
 }
&amp;lt;/style&amp;gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;SPAN&gt;Keep in mind; with the above example, you would have to download &lt;/SPAN&gt;&lt;STRONG&gt;fixed-pan-sprite.png&lt;/STRONG&gt;&lt;SPAN&gt; and save it locally. You could then modify its colors, but if you start changing the height and width (ie: 15px by 15px default), it won't look right unless you also resize the image accordingly (because of it being a sprite, a smaller part of a larger graphic).&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 11 Dec 2021 08:07:52 GMT</pubDate>
    <dc:creator>Anonymous User</dc:creator>
    <dc:date>2021-12-11T08:07:52Z</dc:date>
    <item>
      <title>Changing a Sprite</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/changing-a-sprite/m-p/151471#M14077</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;We want to change the size and color of the pan nav buttons that show when you specify {nav:true} in esri.Map. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I found that the graphic is a background image and the name is fixed-pan-sprite.png.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I can't find the graphic 'fixed-pan-sprite.png' or any reference to the graphic in my css or javascript. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Does anyone know where this graphic is kept and referenced from? &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Robin Woodsong&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;City of Boulder&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Jun 2010 16:10:48 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/changing-a-sprite/m-p/151471#M14077</guid>
      <dc:creator>RobinWoodsong</dc:creator>
      <dc:date>2010-06-11T16:10:48Z</dc:date>
    </item>
    <item>
      <title>Re: Changing a Sprite</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/changing-a-sprite/m-p/151472#M14078</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;This graphic is sort of "hidden." It is streamed from the API and can be found &lt;/SPAN&gt;&lt;A href="http://serverapi.arcgisonline.com/jsapi/arcgis/1.5/images/map/fixed-pan-sprite.png" rel="nofollow noopener noreferrer" target="_blank"&gt;here&lt;/A&gt;&lt;SPAN&gt;. A sprite is one smaller piece of a larger hidden graphic that is loaded when the page is loaded. The API uses some fancy CSS to call up one part of the larger image, usually for use as an icon. Use the Net / Images view from the Firebug add-on for Firefox to see all of the images loaded from the API.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;An easier way to customize your pan buttons may be to use &lt;/SPAN&gt;&lt;A href="http://resources.esri.com/help/9.3/arcgisserver/apis/javascript/arcgis/help/jssamples_start.htm" rel="nofollow noopener noreferrer" target="_blank"&gt;this&lt;/A&gt;&lt;SPAN&gt; ESRI sample. This allows you to use your own graphics, and your own placement on the page. You could even make one image map (one graphic with four arrows) with hotspots for map.panDown(), map.panLeft(), etc.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Or you could override the CSS for that sprite. That would be added to &amp;lt;style&amp;gt; in the html heading, or in your seperate CSS file. It would look something like this:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&amp;lt;style type="text/css"&amp;gt; 
.map .container .fixedPan {
 background-image:url("fixed-pan-sprite.png");
 cursor:pointer;
 height:15px;
 overflow:hidden;
 position:absolute;
 width:15px;
 }
&amp;lt;/style&amp;gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;SPAN&gt;Keep in mind; with the above example, you would have to download &lt;/SPAN&gt;&lt;STRONG&gt;fixed-pan-sprite.png&lt;/STRONG&gt;&lt;SPAN&gt; and save it locally. You could then modify its colors, but if you start changing the height and width (ie: 15px by 15px default), it won't look right unless you also resize the image accordingly (because of it being a sprite, a smaller part of a larger graphic).&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 08:07:52 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/changing-a-sprite/m-p/151472#M14078</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2021-12-11T08:07:52Z</dc:date>
    </item>
    <item>
      <title>Re: Changing a Sprite</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/changing-a-sprite/m-p/151473#M14079</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thank you so much, that's exactly what I am looking for!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Jun 2010 16:13:30 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/changing-a-sprite/m-p/151473#M14079</guid>
      <dc:creator>RobinWoodsong</dc:creator>
      <dc:date>2010-06-14T16:13:30Z</dc:date>
    </item>
  </channel>
</rss>

