<?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 API 3.45 : hide scalebar on the map in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/api-3-45-hide-scalebar-on-the-map/m-p/1402580#M84158</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;is it possible to &lt;STRONG&gt;hide the scale bar&lt;/STRONG&gt; on the map through the api,&lt;BR /&gt;I didn't see any option on the map ...&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Otherwise I have to go through the dom to hide it?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for your help&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="LionelGOUBET_0-1711721107195.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/99431iF50C7D6FA6928C1D/image-size/medium?v=v2&amp;amp;px=400" role="button" title="LionelGOUBET_0-1711721107195.png" alt="LionelGOUBET_0-1711721107195.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 29 Mar 2024 14:05:43 GMT</pubDate>
    <dc:creator>LionelGOUBET</dc:creator>
    <dc:date>2024-03-29T14:05:43Z</dc:date>
    <item>
      <title>API 3.45 : hide scalebar on the map</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/api-3-45-hide-scalebar-on-the-map/m-p/1402580#M84158</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;is it possible to &lt;STRONG&gt;hide the scale bar&lt;/STRONG&gt; on the map through the api,&lt;BR /&gt;I didn't see any option on the map ...&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Otherwise I have to go through the dom to hide it?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for your help&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="LionelGOUBET_0-1711721107195.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/99431iF50C7D6FA6928C1D/image-size/medium?v=v2&amp;amp;px=400" role="button" title="LionelGOUBET_0-1711721107195.png" alt="LionelGOUBET_0-1711721107195.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 29 Mar 2024 14:05:43 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/api-3-45-hide-scalebar-on-the-map/m-p/1402580#M84158</guid>
      <dc:creator>LionelGOUBET</dc:creator>
      <dc:date>2024-03-29T14:05:43Z</dc:date>
    </item>
    <item>
      <title>Re: API 3.45 : hide scalebar on the map</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/api-3-45-hide-scalebar-on-the-map/m-p/1402606#M84162</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/328575"&gt;@LionelGOUBET&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;Somewhere in your app you are likely adding the scalebar.&amp;nbsp; It's not included by default.&amp;nbsp; Find where you are adding the scalebar and simply remove that part from your code.&lt;/P&gt;&lt;P&gt;Or, if you want to be able to hide it and show it again use the scalebar.hide and show methods.&lt;/P&gt;&lt;P&gt;&lt;A href="https://developers.arcgis.com/javascript/3/jsapi/scalebar-amd.html" target="_blank"&gt;https://developers.arcgis.com/javascript/3/jsapi/scalebar-amd.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;  var scalebar = new Scalebar({
    map: map,
    attachTo: "top-right"
  });&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 29 Mar 2024 15:12:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/api-3-45-hide-scalebar-on-the-map/m-p/1402606#M84162</guid>
      <dc:creator>Sage_Wall</dc:creator>
      <dc:date>2024-03-29T15:12:44Z</dc:date>
    </item>
    <item>
      <title>Re: API 3.45 : hide scalebar on the map</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/api-3-45-hide-scalebar-on-the-map/m-p/1402608#M84163</link>
      <description>&lt;P&gt;all my excuses, I did not have this code in my all app ...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks you very much&amp;nbsp; ... sorry again&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 29 Mar 2024 15:15:06 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/api-3-45-hide-scalebar-on-the-map/m-p/1402608#M84163</guid>
      <dc:creator>LionelGOUBET</dc:creator>
      <dc:date>2024-03-29T15:15:06Z</dc:date>
    </item>
  </channel>
</rss>

