<?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: Custom styling for HomeButton in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/custom-styling-for-homebutton/m-p/419503#M38559</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Terry,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;You can try to inspect the element and verify. Also you could refer to the below sample:&lt;/SPAN&gt;&lt;BR /&gt;&lt;A class="jive-link-external-small" href="https://developers.arcgis.com/javascript/jssamples/widget_home.html" rel="nofollow" target="_blank"&gt;https://developers.arcgis.com/javascript/jssamples/widget_home.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If possible can create a jsfiddle and share so its easier to troubleshoot.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Manish &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;I have added a HomeButton to my map, but want to use custom styling to make it look more like the zoom widget. I have got it working ... except for the fact that the word 'Home' now appears over the button. What am I missing?&lt;BR /&gt;&lt;BR /&gt;This is the javascript to add the HomeButton:&lt;BR /&gt;&lt;SPAN style="font-family:Lucida Console;"&gt;this.homebutton = new Homebutton({[INDENT]map: this.map,&lt;BR /&gt;visible: true,&lt;BR /&gt;theme: "homeButton",&lt;BR /&gt;extent: new esri.geometry.Extent(config.initialExtent)&lt;BR /&gt;}, "homeButtonDijit");[/INDENT]&lt;BR /&gt;this.homebutton.startup();[/INDENT]&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;This is the CSS:&lt;BR /&gt;&lt;SPAN style="font-family:Lucida Console;"&gt;/*home button custom styling*/&lt;BR /&gt;.homeButton {&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; -moz-user-select: none;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; background-color: #FFFFFF;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; border: 2px solid #666666;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; border-radius: 5px 5px 5px 5px;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; cursor: pointer;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; padding: 7px;&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;/*class for the home button*/&lt;BR /&gt;.homeButton .home {&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; background-image: url("../images/home.png");&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; width:16px;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; height:16px;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; background-color: white;&lt;BR /&gt;}&lt;BR /&gt;/*Containing class for the widget's node*/&lt;BR /&gt;.homeButton .homeContainer {&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; border:none;&lt;BR /&gt;}&lt;BR /&gt;/*Class put onto the home button while the home extent is loading*/&lt;BR /&gt;.homeButton .loading {&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; background-image: url("../images/loading.png");&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; width:16px;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; height:16px;&lt;BR /&gt;}&lt;/SPAN&gt;&lt;/BLOCKQUOTE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 27 Feb 2014 00:52:46 GMT</pubDate>
    <dc:creator>ManishkumarPatel</dc:creator>
    <dc:date>2014-02-27T00:52:46Z</dc:date>
    <item>
      <title>Custom styling for HomeButton</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/custom-styling-for-homebutton/m-p/419502#M38558</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I have added a HomeButton to my map, but want to use custom styling to make it look more like the zoom widget. I have got it working ... except for the fact that the word 'Home' now appears over the button. What am I missing?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This is the javascript to add the HomeButton:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family:Lucida Console;"&gt;this.homebutton = new Homebutton({&lt;BR /&gt;[INDENT]map: this.map,&lt;BR /&gt;visible: true,&lt;BR /&gt;theme: "homeButton",&lt;BR /&gt;extent: new esri.geometry.Extent(config.initialExtent)&lt;BR /&gt;}, "homeButtonDijit");[/INDENT]&lt;BR /&gt;this.homebutton.startup();[/INDENT]&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This is the CSS:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family:Lucida Console;"&gt;/*home button custom styling*/&lt;BR /&gt;.homeButton {&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; -moz-user-select: none;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; background-color: #FFFFFF;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; border: 2px solid #666666;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; border-radius: 5px 5px 5px 5px;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; cursor: pointer;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; padding: 7px;&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;/*class for the home button*/&lt;BR /&gt;.homeButton .home {&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; background-image: url("../images/home.png");&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; width:16px;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; height:16px;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; background-color: white;&lt;BR /&gt;}&lt;BR /&gt;/*Containing class for the widget's node*/&lt;BR /&gt;.homeButton .homeContainer {&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; border:none;&lt;BR /&gt;}&lt;BR /&gt;/*Class put onto the home button while the home extent is loading*/&lt;BR /&gt;.homeButton .loading {&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; background-image: url("../images/loading.png");&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; width:16px;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; height:16px;&lt;BR /&gt;}&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Feb 2014 19:32:36 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/custom-styling-for-homebutton/m-p/419502#M38558</guid>
      <dc:creator>TerryRichards</dc:creator>
      <dc:date>2014-02-26T19:32:36Z</dc:date>
    </item>
    <item>
      <title>Re: Custom styling for HomeButton</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/custom-styling-for-homebutton/m-p/419503#M38559</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Terry,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;You can try to inspect the element and verify. Also you could refer to the below sample:&lt;/SPAN&gt;&lt;BR /&gt;&lt;A class="jive-link-external-small" href="https://developers.arcgis.com/javascript/jssamples/widget_home.html" rel="nofollow" target="_blank"&gt;https://developers.arcgis.com/javascript/jssamples/widget_home.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If possible can create a jsfiddle and share so its easier to troubleshoot.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Manish &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;I have added a HomeButton to my map, but want to use custom styling to make it look more like the zoom widget. I have got it working ... except for the fact that the word 'Home' now appears over the button. What am I missing?&lt;BR /&gt;&lt;BR /&gt;This is the javascript to add the HomeButton:&lt;BR /&gt;&lt;SPAN style="font-family:Lucida Console;"&gt;this.homebutton = new Homebutton({[INDENT]map: this.map,&lt;BR /&gt;visible: true,&lt;BR /&gt;theme: "homeButton",&lt;BR /&gt;extent: new esri.geometry.Extent(config.initialExtent)&lt;BR /&gt;}, "homeButtonDijit");[/INDENT]&lt;BR /&gt;this.homebutton.startup();[/INDENT]&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;This is the CSS:&lt;BR /&gt;&lt;SPAN style="font-family:Lucida Console;"&gt;/*home button custom styling*/&lt;BR /&gt;.homeButton {&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; -moz-user-select: none;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; background-color: #FFFFFF;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; border: 2px solid #666666;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; border-radius: 5px 5px 5px 5px;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; cursor: pointer;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; padding: 7px;&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;/*class for the home button*/&lt;BR /&gt;.homeButton .home {&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; background-image: url("../images/home.png");&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; width:16px;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; height:16px;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; background-color: white;&lt;BR /&gt;}&lt;BR /&gt;/*Containing class for the widget's node*/&lt;BR /&gt;.homeButton .homeContainer {&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; border:none;&lt;BR /&gt;}&lt;BR /&gt;/*Class put onto the home button while the home extent is loading*/&lt;BR /&gt;.homeButton .loading {&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; background-image: url("../images/loading.png");&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; width:16px;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; height:16px;&lt;BR /&gt;}&lt;/SPAN&gt;&lt;/BLOCKQUOTE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Feb 2014 00:52:46 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/custom-styling-for-homebutton/m-p/419503#M38559</guid>
      <dc:creator>ManishkumarPatel</dc:creator>
      <dc:date>2014-02-27T00:52:46Z</dc:date>
    </item>
    <item>
      <title>Re: Custom styling for HomeButton</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/custom-styling-for-homebutton/m-p/419504#M38560</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks Manish. Yes, inspecting the element did help ... as you can see somewhere in html that is rendered for the widget there is a span with inner html 'Home'. I will have to inspect the widget's default styling to see what is done to hide it. In the mean time I have just set the font colour of my home class to transparent. Bit of a hack, but will work for now.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Terry&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Feb 2014 10:53:48 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/custom-styling-for-homebutton/m-p/419504#M38560</guid>
      <dc:creator>TerryRichards</dc:creator>
      <dc:date>2014-02-27T10:53:48Z</dc:date>
    </item>
    <item>
      <title>Re: Custom styling for HomeButton</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/custom-styling-for-homebutton/m-p/419505#M38561</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Thanks Manish. Yes, inspecting the element did help ... as you can see somewhere in html that is rendered for the widget there is a span with inner html 'Home'. I will have to inspect the widget's default styling to see what is done to hide it. In the mean time I have just set the font colour of my home class to transparent. Bit of a hack, but will work for now.&lt;BR /&gt;&lt;BR /&gt;Terry&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;That text is there incase someone wanted the text instead of an icon or image. You can just use this to hide it:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;[HTML].homeButton span{display:none;}[/HTML]&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Feb 2014 03:18:23 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/custom-styling-for-homebutton/m-p/419505#M38561</guid>
      <dc:creator>MattDriscoll</dc:creator>
      <dc:date>2014-02-28T03:18:23Z</dc:date>
    </item>
  </channel>
</rss>

