<?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: Why does my scalebar appear to look different with the same CSS applied to another similar looking app? in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/why-does-my-scalebar-appear-to-look-different-with/m-p/474817#M44060</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I had my variable of OverviewMap and Scalebar in reverse order. So my overviewmap disappeared and the tiled black and white scalebar appeared.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I thought this was worth keeping to demo what can happen when you have your variables in the wrong order.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 09 Jan 2015 17:35:30 GMT</pubDate>
    <dc:creator>ChrisSergent</dc:creator>
    <dc:date>2015-01-09T17:35:30Z</dc:date>
    <item>
      <title>Why does my scalebar appear to look different with the same CSS applied to another similar looking app?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/why-does-my-scalebar-appear-to-look-different-with/m-p/474816#M44059</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have three apps that I am creating as templates side by side. In my &lt;A href="https://github.com/csergent45/gisWeb/tree/962d7c9ee3682d122f0ddee11637b8572756c359" rel="nofollow noopener noreferrer" target="_blank"&gt;gisWeb&lt;/A&gt; app, my scalebar looks like this:&lt;IMG __jive_id="48817" alt="scalebar1.png" class="jive-image image-1" src="https://community.esri.com/legacyfs/online/48817_scalebar1.png" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;In both my &lt;A href="https://github.com/csergent45/gisTemplate/tree/4b4e175d00a01e0d3f08df18b382e02e605af81f" rel="nofollow noopener noreferrer" target="_blank"&gt;gisTemplate&lt;/A&gt; app and my &lt;A href="https://github.com/csergent45/gisMobile/tree/0c2ae8e489c6cf81951e57a2b660fc8e700c9592" rel="nofollow noopener noreferrer" target="_blank"&gt;gisMobile&lt;/A&gt; app they look like this: &lt;IMG __jive_id="48818" alt="scalebar2.png" class="jive-image image-2" src="https://community.esri.com/legacyfs/online/48818_scalebar2.png" style="height: auto;" /&gt; And I don't know how I got this look. All three apps use the same JavaScript and the same CSS. I have linked to the app versions that are on github. They are pretty small right now. Just to demo that the code is the same, here is the JavaScript and CSS for each:&lt;/P&gt;&lt;H2 id="toc-hId-1708430988"&gt;gisWeb&lt;/H2&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;// scalebar Begin
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var scalebar = new Scalebar({
&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; map: map,
&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; scalebarUnit: "dual"
&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;&amp;nbsp;&amp;nbsp; // scalebar End&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;/* Scalebar */
&lt;SPAN&gt;/* Used CSS Gradient Generator - &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://www.colorzilla.com/gradient-editor/" rel="nofollow noopener noreferrer" target="_blank"&gt;http://www.colorzilla.com/gradient-editor/&lt;/A&gt;&lt;SPAN&gt; */&lt;/SPAN&gt;
.esriScalebarLine, .esriScalebarMetricLine
{
&amp;nbsp;&amp;nbsp;&amp;nbsp; background: rgb(247,247,247); /* Old browsers */
&amp;nbsp;&amp;nbsp;&amp;nbsp; background: -moz-radial-gradient(center, ellipse cover,&amp;nbsp; rgba(247,247,247,1) 0%, rgba(219,219,219,1) 50%, rgba(209,209,209,1) 51%, rgba(5,5,5,1) 100%); /* FF3.6+ */
&amp;nbsp;&amp;nbsp;&amp;nbsp; background: -webkit-gradient(radial, center center, 0px, center center, 100%, color-stop(0%,rgba(247,247,247,1)), color-stop(50%,rgba(219,219,219,1)), color-stop(51%,rgba(209,209,209,1)), color-stop(100%,rgba(5,5,5,1))); /* Chrome,Safari4+ */
&amp;nbsp;&amp;nbsp;&amp;nbsp; background: -webkit-radial-gradient(center, ellipse cover,&amp;nbsp; rgba(247,247,247,1) 0%,rgba(219,219,219,1) 50%,rgba(209,209,209,1) 51%,rgba(5,5,5,1) 100%); /* Chrome10+,Safari5.1+ */
&amp;nbsp;&amp;nbsp;&amp;nbsp; background: -o-radial-gradient(center, ellipse cover,&amp;nbsp; rgba(247,247,247,1) 0%,rgba(219,219,219,1) 50%,rgba(209,209,209,1) 51%,rgba(5,5,5,1) 100%); /* Opera 12+ */
&amp;nbsp;&amp;nbsp;&amp;nbsp; background: -ms-radial-gradient(center, ellipse cover,&amp;nbsp; rgba(247,247,247,1) 0%,rgba(219,219,219,1) 50%,rgba(209,209,209,1) 51%,rgba(5,5,5,1) 100%); /* IE10+ */
&amp;nbsp;&amp;nbsp;&amp;nbsp; background: radial-gradient(ellipse at center,&amp;nbsp; rgba(247,247,247,1) 0%,rgba(219,219,219,1) 50%,rgba(209,209,209,1) 51%,rgba(5,5,5,1) 100%); /* W3C */
&amp;nbsp;&amp;nbsp;&amp;nbsp; filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#f7f7f7', endColorstr='#050505',GradientType=1 ); /* IE6-9 fallback on horizontal gradient */
&amp;nbsp;&amp;nbsp;&amp;nbsp; border-width:thin;
&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; 
.esriScalebarLabel, .esriScalebarLineLabel,.esriScalebarSecondNumber, .esriScaleLabelDiv
{
&amp;nbsp;&amp;nbsp;&amp;nbsp; text-shadow:-1px -1px 0 #fff,&amp;nbsp; 
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1px -1px 0 #fff,
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; -1px 1px 0 #fff,
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1px 1px 0 #fff;
&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; 
}&lt;/PRE&gt;&lt;H2 id="toc-hId--843725973"&gt;gisMobile&lt;/H2&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;// scalebar Begin
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var scalebar = new Scalebar({
&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; map: map,
&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; scalebarUnit: "dual"
&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;&amp;nbsp;&amp;nbsp; // scalebar End&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;/* Scalebar */
&lt;SPAN&gt;/* Used CSS Gradient Generator - &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://www.colorzilla.com/gradient-editor/" rel="nofollow noopener noreferrer" target="_blank"&gt;http://www.colorzilla.com/gradient-editor/&lt;/A&gt;&lt;SPAN&gt; */&lt;/SPAN&gt;
.esriScalebarLine, .esriScalebarMetricLine
{
&amp;nbsp;&amp;nbsp;&amp;nbsp; background: rgb(247,247,247); /* Old browsers */
&amp;nbsp;&amp;nbsp;&amp;nbsp; background: -moz-radial-gradient(center, ellipse cover,&amp;nbsp; rgba(247,247,247,1) 0%, rgba(219,219,219,1) 50%, rgba(209,209,209,1) 51%, rgba(5,5,5,1) 100%); /* FF3.6+ */
&amp;nbsp;&amp;nbsp;&amp;nbsp; background: -webkit-gradient(radial, center center, 0px, center center, 100%, color-stop(0%,rgba(247,247,247,1)), color-stop(50%,rgba(219,219,219,1)), color-stop(51%,rgba(209,209,209,1)), color-stop(100%,rgba(5,5,5,1))); /* Chrome,Safari4+ */
&amp;nbsp;&amp;nbsp;&amp;nbsp; background: -webkit-radial-gradient(center, ellipse cover,&amp;nbsp; rgba(247,247,247,1) 0%,rgba(219,219,219,1) 50%,rgba(209,209,209,1) 51%,rgba(5,5,5,1) 100%); /* Chrome10+,Safari5.1+ */
&amp;nbsp;&amp;nbsp;&amp;nbsp; background: -o-radial-gradient(center, ellipse cover,&amp;nbsp; rgba(247,247,247,1) 0%,rgba(219,219,219,1) 50%,rgba(209,209,209,1) 51%,rgba(5,5,5,1) 100%); /* Opera 12+ */
&amp;nbsp;&amp;nbsp;&amp;nbsp; background: -ms-radial-gradient(center, ellipse cover,&amp;nbsp; rgba(247,247,247,1) 0%,rgba(219,219,219,1) 50%,rgba(209,209,209,1) 51%,rgba(5,5,5,1) 100%); /* IE10+ */
&amp;nbsp;&amp;nbsp;&amp;nbsp; background: radial-gradient(ellipse at center,&amp;nbsp; rgba(247,247,247,1) 0%,rgba(219,219,219,1) 50%,rgba(209,209,209,1) 51%,rgba(5,5,5,1) 100%); /* W3C */
&amp;nbsp;&amp;nbsp;&amp;nbsp; filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#f7f7f7', endColorstr='#050505',GradientType=1 ); /* IE6-9 fallback on horizontal gradient */
&amp;nbsp;&amp;nbsp;&amp;nbsp; border-width:thin;
&amp;nbsp;&amp;nbsp;&amp;nbsp; }
.esriScalebarLabel, .esriScalebarLineLabel,.esriScalebarSecondNumber, .esriScaleLabelDiv
{
&amp;nbsp;&amp;nbsp;&amp;nbsp; text-shadow:-1px -1px 0 #fff,&amp;nbsp; 
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1px -1px 0 #fff,
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; -1px 1px 0 #fff,
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1px 1px 0 #fff;
&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; 
}&lt;/PRE&gt;&lt;H2 id="toc-hId-899084362"&gt;gisTemplate&lt;/H2&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt; // scalebar Begin
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var scalebar = new Scalebar({
&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; map: map,
&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; scalebarUnit: "dual"
&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;&amp;nbsp;&amp;nbsp; // scalebar End&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;/* Scalebar */
&lt;SPAN&gt;/* Used CSS Gradient Generator - &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://www.colorzilla.com/gradient-editor/" rel="nofollow noopener noreferrer" target="_blank"&gt;http://www.colorzilla.com/gradient-editor/&lt;/A&gt;&lt;SPAN&gt; */&lt;/SPAN&gt;
.esriScalebarLine, .esriScalebarMetricLine
{
&amp;nbsp;&amp;nbsp;&amp;nbsp; background: rgb(247,247,247); /* Old browsers */
&amp;nbsp;&amp;nbsp;&amp;nbsp; background: -moz-radial-gradient(center, ellipse cover,&amp;nbsp; rgba(247,247,247,1) 0%, rgba(219,219,219,1) 50%, rgba(209,209,209,1) 51%, rgba(5,5,5,1) 100%); /* FF3.6+ */
&amp;nbsp;&amp;nbsp;&amp;nbsp; background: -webkit-gradient(radial, center center, 0px, center center, 100%, color-stop(0%,rgba(247,247,247,1)), color-stop(50%,rgba(219,219,219,1)), color-stop(51%,rgba(209,209,209,1)), color-stop(100%,rgba(5,5,5,1))); /* Chrome,Safari4+ */
&amp;nbsp;&amp;nbsp;&amp;nbsp; background: -webkit-radial-gradient(center, ellipse cover,&amp;nbsp; rgba(247,247,247,1) 0%,rgba(219,219,219,1) 50%,rgba(209,209,209,1) 51%,rgba(5,5,5,1) 100%); /* Chrome10+,Safari5.1+ */
&amp;nbsp;&amp;nbsp;&amp;nbsp; background: -o-radial-gradient(center, ellipse cover,&amp;nbsp; rgba(247,247,247,1) 0%,rgba(219,219,219,1) 50%,rgba(209,209,209,1) 51%,rgba(5,5,5,1) 100%); /* Opera 12+ */
&amp;nbsp;&amp;nbsp;&amp;nbsp; background: -ms-radial-gradient(center, ellipse cover,&amp;nbsp; rgba(247,247,247,1) 0%,rgba(219,219,219,1) 50%,rgba(209,209,209,1) 51%,rgba(5,5,5,1) 100%); /* IE10+ */
&amp;nbsp;&amp;nbsp;&amp;nbsp; background: radial-gradient(ellipse at center,&amp;nbsp; rgba(247,247,247,1) 0%,rgba(219,219,219,1) 50%,rgba(209,209,209,1) 51%,rgba(5,5,5,1) 100%); /* W3C */
&amp;nbsp;&amp;nbsp;&amp;nbsp; filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#f7f7f7', endColorstr='#050505',GradientType=1 ); /* IE6-9 fallback on horizontal gradient */
&amp;nbsp;&amp;nbsp;&amp;nbsp; border-width:thin;
&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; 
.esriScalebarLabel, .esriScalebarLineLabel,.esriScalebarSecondNumber, .esriScaleLabelDiv
{
&amp;nbsp;&amp;nbsp;&amp;nbsp; text-shadow:-1px -1px 0 #fff,&amp;nbsp; 
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1px -1px 0 #fff,
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; -1px 1px 0 #fff,
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1px 1px 0 #fff;
&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; 
}&lt;/PRE&gt;&lt;P&gt;I'm stuck on this one. Any ideas?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 20:59:32 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/why-does-my-scalebar-appear-to-look-different-with/m-p/474816#M44059</guid>
      <dc:creator>ChrisSergent</dc:creator>
      <dc:date>2021-12-11T20:59:32Z</dc:date>
    </item>
    <item>
      <title>Re: Why does my scalebar appear to look different with the same CSS applied to another similar looking app?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/why-does-my-scalebar-appear-to-look-different-with/m-p/474817#M44060</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I had my variable of OverviewMap and Scalebar in reverse order. So my overviewmap disappeared and the tiled black and white scalebar appeared.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I thought this was worth keeping to demo what can happen when you have your variables in the wrong order.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Jan 2015 17:35:30 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/why-does-my-scalebar-appear-to-look-different-with/m-p/474817#M44060</guid>
      <dc:creator>ChrisSergent</dc:creator>
      <dc:date>2015-01-09T17:35:30Z</dc:date>
    </item>
  </channel>
</rss>

