<?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: Toggle Map in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/toggle-map/m-p/304070#M27938</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear robert&amp;nbsp;&lt;/P&gt;&lt;P&gt;i sovled one issue.&lt;/P&gt;&lt;P&gt;var mapExtentChange = map.on("extent-change", changeHandler);&lt;BR /&gt; function changeHandler(evt) {&lt;BR /&gt; var extent = evt.extent,&lt;BR /&gt; zoomed = evt.levelChange;&lt;BR /&gt;var intCount = 0;&lt;BR /&gt; if (map.getZoom() &amp;gt; 13) {&lt;BR /&gt; if (intCount == 0) {&lt;BR /&gt; toggle.startup();&lt;BR /&gt; $('#DivBP').css("visibility", "Visible");&lt;BR /&gt; intCount++;&lt;BR /&gt; }&lt;BR /&gt; else if (intCount &amp;gt; 0)&lt;BR /&gt; {&lt;BR /&gt; $('#DivBP').css("visibility", "Visible");&lt;BR /&gt; intCount++;&lt;BR /&gt; }&lt;BR /&gt; &lt;BR /&gt; }&lt;BR /&gt; else {&lt;BR /&gt; var baseMapToggle = dijit.byId('DivBP');&lt;BR /&gt; $('#DivBP').css("visibility", "hidden");&lt;BR /&gt; }&lt;BR /&gt; }&lt;/P&gt;&lt;P&gt;this is my code.the other issue is when i press toggle on baseMapToggle widget.map layer change.But title not change.&lt;IMG alt="" class="image-1 jive-image j-img-original" src="https://community.esri.com/legacyfs/online/418031_1122.png" /&gt;&amp;nbsp;this title inside red eclipse never change.how to change.Thanks again.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 03 Aug 2018 14:16:54 GMT</pubDate>
    <dc:creator>NadirHussain</dc:creator>
    <dc:date>2018-08-03T14:16:54Z</dc:date>
    <item>
      <title>Toggle Map</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/toggle-map/m-p/304067#M27935</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;if (map.getZoom() &amp;gt; 13) {&lt;BR /&gt; visFlag = true;&lt;BR /&gt; toggle = new BasemapToggle({&lt;BR /&gt; map: map,&lt;BR /&gt; visible: true,&lt;BR /&gt; basemap: "hybrid",&lt;BR /&gt; basemaps:&lt;BR /&gt; {&lt;BR /&gt; "hybrid": {&lt;BR /&gt; "title": "hhh",&lt;BR /&gt; "thumbnailUrl": "../Content/images/satellite.png"&lt;BR /&gt; },&lt;BR /&gt; "topo": {&lt;BR /&gt; "title": "fff",&lt;BR /&gt; "thumbnailUrl": "../Content/images/topo.png"&lt;BR /&gt; }&lt;BR /&gt; }&lt;BR /&gt; }, "BasemapToggle");&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if (toggle) {&lt;BR /&gt; console.log("i m inside Visible 13");&lt;BR /&gt; toggle.startup();&lt;BR /&gt; }&lt;/P&gt;&lt;P&gt;}&lt;BR /&gt;else {&lt;BR /&gt;if (toggle) {&lt;BR /&gt; toggle.destroy();&lt;BR /&gt; console.log("destroy")&lt;BR /&gt; }&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;dear all&amp;nbsp;&lt;/P&gt;&lt;P&gt;i want to change the toggle map visibility on extent change.but only one time this happened.But one time toggle map appear and disappear.it not comes second time please help.other thing i also want to&amp;nbsp;display&amp;nbsp; title of&amp;nbsp; currently selected map&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Aug 2018 17:36:11 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/toggle-map/m-p/304067#M27935</guid>
      <dc:creator>NadirHussain</dc:creator>
      <dc:date>2018-08-02T17:36:11Z</dc:date>
    </item>
    <item>
      <title>Re: Toggle Map</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/toggle-map/m-p/304068#M27936</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;tried to register widget with id==BasemapToggle but that id is already registered.this error is also i am getting.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Aug 2018 18:10:30 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/toggle-map/m-p/304068#M27936</guid>
      <dc:creator>NadirHussain</dc:creator>
      <dc:date>2018-08-02T18:10:30Z</dc:date>
    </item>
    <item>
      <title>Re: Toggle Map</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/toggle-map/m-p/304069#M27937</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Nadir,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;Can you add a simple full sample code of this?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Aug 2018 13:04:01 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/toggle-map/m-p/304069#M27937</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2018-08-03T13:04:01Z</dc:date>
    </item>
    <item>
      <title>Re: Toggle Map</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/toggle-map/m-p/304070#M27938</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear robert&amp;nbsp;&lt;/P&gt;&lt;P&gt;i sovled one issue.&lt;/P&gt;&lt;P&gt;var mapExtentChange = map.on("extent-change", changeHandler);&lt;BR /&gt; function changeHandler(evt) {&lt;BR /&gt; var extent = evt.extent,&lt;BR /&gt; zoomed = evt.levelChange;&lt;BR /&gt;var intCount = 0;&lt;BR /&gt; if (map.getZoom() &amp;gt; 13) {&lt;BR /&gt; if (intCount == 0) {&lt;BR /&gt; toggle.startup();&lt;BR /&gt; $('#DivBP').css("visibility", "Visible");&lt;BR /&gt; intCount++;&lt;BR /&gt; }&lt;BR /&gt; else if (intCount &amp;gt; 0)&lt;BR /&gt; {&lt;BR /&gt; $('#DivBP').css("visibility", "Visible");&lt;BR /&gt; intCount++;&lt;BR /&gt; }&lt;BR /&gt; &lt;BR /&gt; }&lt;BR /&gt; else {&lt;BR /&gt; var baseMapToggle = dijit.byId('DivBP');&lt;BR /&gt; $('#DivBP').css("visibility", "hidden");&lt;BR /&gt; }&lt;BR /&gt; }&lt;/P&gt;&lt;P&gt;this is my code.the other issue is when i press toggle on baseMapToggle widget.map layer change.But title not change.&lt;IMG alt="" class="image-1 jive-image j-img-original" src="https://community.esri.com/legacyfs/online/418031_1122.png" /&gt;&amp;nbsp;this title inside red eclipse never change.how to change.Thanks again.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Aug 2018 14:16:54 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/toggle-map/m-p/304070#M27938</guid>
      <dc:creator>NadirHussain</dc:creator>
      <dc:date>2018-08-03T14:16:54Z</dc:date>
    </item>
    <item>
      <title>Re: Toggle Map</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/toggle-map/m-p/304071#M27939</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Robert&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;Thanks.I solved all the issues.i override the toggle method of ToggleBaseMap Class.It solved all my issues.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Again.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Aug 2018 05:57:27 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/toggle-map/m-p/304071#M27939</guid>
      <dc:creator>NadirHussain</dc:creator>
      <dc:date>2018-08-07T05:57:27Z</dc:date>
    </item>
  </channel>
</rss>

