<?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: building custom zoom buttons for a basemap gallery in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/building-custom-zoom-buttons-for-a-basemap-gallery/m-p/599523#M56066</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;After clicking on the zoom buttons you'll need to draw a zoom extent on the map in order for the zoom action to occur. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;You mentioned that it doesn't work in your project. Can you post code?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 14 Dec 2011 16:22:58 GMT</pubDate>
    <dc:creator>KellyHutchins</dc:creator>
    <dc:date>2011-12-14T16:22:58Z</dc:date>
    <item>
      <title>building custom zoom buttons for a basemap gallery</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/building-custom-zoom-buttons-for-a-basemap-gallery/m-p/599520#M56063</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hello!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm using a basemap gallery with three maps (two static, one dynamic) in a mobile webapp.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;How can I build custom zoom buttons? &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I tried to find out what methods the built in buttons are using, without success and I also couldn't find anything in the API Reference...&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;BR Paul&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Dec 2011 19:54:21 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/building-custom-zoom-buttons-for-a-basemap-gallery/m-p/599520#M56063</guid>
      <dc:creator>PaulJereb</dc:creator>
      <dc:date>2011-12-13T19:54:21Z</dc:date>
    </item>
    <item>
      <title>Re: building custom zoom buttons for a basemap gallery</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/building-custom-zoom-buttons-for-a-basemap-gallery/m-p/599521#M56064</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;One way to accomplish this would be to use the Navigation toolbar. Here's a link to a sample:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://help.arcgis.com/en/webapi/javascript/arcgis/help/jssamples_start.htm#jssamples/toolbar_navigation.html"&gt;http://help.arcgis.com/en/webapi/javascript/arcgis/help/jssamples_start.htm#jssamples/toolbar_navigation.html&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Dec 2011 21:42:05 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/building-custom-zoom-buttons-for-a-basemap-gallery/m-p/599521#M56064</guid>
      <dc:creator>KellyHutchins</dc:creator>
      <dc:date>2011-12-13T21:42:05Z</dc:date>
    </item>
    <item>
      <title>Re: building custom zoom buttons for a basemap gallery</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/building-custom-zoom-buttons-for-a-basemap-gallery/m-p/599522#M56065</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks Kelly, that would be exactly what I need. I tried to add it to my project but it didn't work. Also when trying to zoom in/out using the buttons in the demo you posted nothing happens...&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;(I tested it with firefox, chrome and safari)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;BR Paul&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Dec 2011 16:17:12 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/building-custom-zoom-buttons-for-a-basemap-gallery/m-p/599522#M56065</guid>
      <dc:creator>PaulJereb</dc:creator>
      <dc:date>2011-12-14T16:17:12Z</dc:date>
    </item>
    <item>
      <title>Re: building custom zoom buttons for a basemap gallery</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/building-custom-zoom-buttons-for-a-basemap-gallery/m-p/599523#M56066</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;After clicking on the zoom buttons you'll need to draw a zoom extent on the map in order for the zoom action to occur. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;You mentioned that it doesn't work in your project. Can you post code?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Dec 2011 16:22:58 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/building-custom-zoom-buttons-for-a-basemap-gallery/m-p/599523#M56066</guid>
      <dc:creator>KellyHutchins</dc:creator>
      <dc:date>2011-12-14T16:22:58Z</dc:date>
    </item>
    <item>
      <title>Re: building custom zoom buttons for a basemap gallery</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/building-custom-zoom-buttons-for-a-basemap-gallery/m-p/599524#M56067</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;ah ok, that explains a lot &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt; I'd need the zoom functionality for a &lt;/SPAN&gt;&lt;STRONG&gt;mobile webapp&lt;/STRONG&gt;&lt;SPAN&gt; (iOS), so it should zoom right on the click of the button. Like the built-in zoom-buttons in this sample:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://help.arcgis.com/en/webapi/javascript/arcgis/demos/mobile/mobile_simplemap.html"&gt;http://help.arcgis.com/en/webapi/javascript/arcgis/demos/mobile/mobile_simplemap.html&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Dec 2011 19:06:14 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/building-custom-zoom-buttons-for-a-basemap-gallery/m-p/599524#M56067</guid>
      <dc:creator>PaulJereb</dc:creator>
      <dc:date>2011-12-14T19:06:14Z</dc:date>
    </item>
    <item>
      <title>Re: building custom zoom buttons for a basemap gallery</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/building-custom-zoom-buttons-for-a-basemap-gallery/m-p/599525#M56068</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Paul,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;You could create zoom buttons that modify the map's extent. Something like this:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt; &amp;lt;div data-dojo-type="dijit.form.Button" id="zoomin"&amp;nbsp; data-dojo-props="iconClass:'zoominIcon', onClick:function(){map.setExtent(map.extent.expand(0.5));}"&amp;gt;Zoom In&amp;lt;/div&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;div data-dojo-type="dijit.form.Button" id="zoomout" data-dojo-props="iconClass:'zoomoutIcon', onClick:function(){map.setExtent(map.extent.expand(2));}"&amp;gt;Zoom Out&amp;lt;/div&amp;gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 01:43:48 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/building-custom-zoom-buttons-for-a-basemap-gallery/m-p/599525#M56068</guid>
      <dc:creator>KellyHutchins</dc:creator>
      <dc:date>2021-12-12T01:43:48Z</dc:date>
    </item>
    <item>
      <title>Re: building custom zoom buttons for a basemap gallery</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/building-custom-zoom-buttons-for-a-basemap-gallery/m-p/599526#M56069</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;PERFECT!&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank you, Kelly!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Dec 2011 04:47:58 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/building-custom-zoom-buttons-for-a-basemap-gallery/m-p/599526#M56069</guid>
      <dc:creator>PaulJereb</dc:creator>
      <dc:date>2011-12-15T04:47:58Z</dc:date>
    </item>
  </channel>
</rss>

