<?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 How to remove the miles annotation from the ScaleBarOverlay in Java Maps SDK Questions</title>
    <link>https://community.esri.com/t5/java-maps-sdk-questions/how-to-remove-the-miles-annotation-from-the/m-p/5003#M12</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The ScaleBarOverlay is instantiated showing both KM and Miles. I would like to remove the miles annotation but so far have been unable to find any method to accomplish this. Can anyone suggest how to get this done.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 01 Jan 2015 19:44:25 GMT</pubDate>
    <dc:creator>JerrySchultz</dc:creator>
    <dc:date>2015-01-01T19:44:25Z</dc:date>
    <item>
      <title>How to remove the miles annotation from the ScaleBarOverlay</title>
      <link>https://community.esri.com/t5/java-maps-sdk-questions/how-to-remove-the-miles-annotation-from-the/m-p/5003#M12</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The ScaleBarOverlay is instantiated showing both KM and Miles. I would like to remove the miles annotation but so far have been unable to find any method to accomplish this. Can anyone suggest how to get this done.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Jan 2015 19:44:25 GMT</pubDate>
      <guid>https://community.esri.com/t5/java-maps-sdk-questions/how-to-remove-the-miles-annotation-from-the/m-p/5003#M12</guid>
      <dc:creator>JerrySchultz</dc:creator>
      <dc:date>2015-01-01T19:44:25Z</dc:date>
    </item>
    <item>
      <title>Re: How to remove the miles annotation from the ScaleBarOverlay</title>
      <link>https://community.esri.com/t5/java-maps-sdk-questions/how-to-remove-the-miles-annotation-from-the/m-p/5004#M13</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jerry,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We don't an API to do that. However, since the source code of ScaleBarOverlay is publicly available, you could customize it. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is the source code of ScaleBarOverlay that does not display miles - &lt;A href="https://gist.github.com/vGandhi/03476ad19d2a7998e089" title="https://gist.github.com/vGandhi/03476ad19d2a7998e089"&gt;ScaleBarOverlay without miles.&lt;/A&gt;‌ &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The changes made are:&lt;/P&gt;&lt;P&gt;1) In createScaleBar(), I have commented out the code that was creating the second row and text (miles).&lt;/P&gt;&lt;P&gt;2) In onPaint(), I removed code that was drawing the second row and text.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 Jan 2015 19:02:42 GMT</pubDate>
      <guid>https://community.esri.com/t5/java-maps-sdk-questions/how-to-remove-the-miles-annotation-from-the/m-p/5004#M13</guid>
      <dc:creator>VijayGandhi</dc:creator>
      <dc:date>2015-01-02T19:02:42Z</dc:date>
    </item>
  </channel>
</rss>

