<?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 inset map Not working in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/toggle-inset-map-not-working/m-p/328643#M30365</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Alex,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Your draggable element was being set to display none at the time of initialization. when overview map is initialized the dom size will be unknown, which is causing the issue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Add below lines at the end of your map load event. after &lt;STRONG&gt;domAttr.set(dojo.query(".action.zoomTo", map.infoWindow.domNode)[0], 'style', 'cursor:pointer;');&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;also resolve domStyle to "dojo/dom-style" module&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="javascript" __jive_macro_name="code" class="jive_macro_code jive_text_macro _jivemacro_uid_14097129915759429" jivemacro_uid="_14097129915759429"&gt;
&lt;P&gt;//add the overview map&lt;/P&gt;
&lt;P&gt;domStyle.set(dojo.query(".draggable")[0], "display", "block");&lt;/P&gt;
&lt;P&gt;overviewMapDijit = new esri.dijit.OverviewMap({&lt;/P&gt;
&lt;P&gt;&amp;nbsp; map: map,&lt;/P&gt;
&lt;P&gt;&amp;nbsp; width: 250,&lt;/P&gt;
&lt;P&gt;&amp;nbsp; height: 150&lt;/P&gt;
&lt;P&gt;}, dojo.byId('overviewMapDiv'));&lt;/P&gt;
&lt;P&gt;overviewMapDijit.startup();&lt;/P&gt;
&lt;P&gt;domStyle.set(dojo.query(".draggable")[0], "display", "none");&lt;/P&gt;
&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Untitled.png" class="jive-image image-1" src="https://community.esri.com/legacyfs/online/7264_Untitled.png" style="width: 620px; height: 491px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 03 Sep 2014 03:00:06 GMT</pubDate>
    <dc:creator>RiyasDeen</dc:creator>
    <dc:date>2014-09-03T03:00:06Z</dc:date>
    <item>
      <title>toggle inset map Not working</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/toggle-inset-map-not-working/m-p/328642#M30364</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;I am using JQuery UI layout for my map template. I am now able with JQuery to toggle the inset map. What I am trying to achieve now is to start the map with the inset map off. IT works fine with either JQuery:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="html" __jive_macro_name="code" class="jive_macro_code _jivemacro_uid_14096989590028886 jive_text_macro" jivemacro_uid="_14096989590028886"&gt;
&lt;P&gt;$('#draggable').hide();&lt;/P&gt;
&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or CSS:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="html" __jive_macro_name="code" class="jive_macro_code jive_text_macro _jivemacro_uid_14096989859203067" jivemacro_uid="_14096989859203067" modifiedtitle="true"&gt;
&lt;P&gt;display:none;&lt;/P&gt;
&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, when using either one of these methods, the inset map gets messed up. (height/width/highligthbox) are all completely off.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can access my map &lt;A href="http://134.186.111.22/AG_Sandbox/layout-master/demos/Map-Widget.html"&gt;here&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The inset map id hidden at start as wished but it you click on the upper right corner of the map button to toggle it you will see that it gets messed up. I am not sure what is wrong with it. Any idea are welcome.&lt;/P&gt;&lt;P&gt;Alex&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Sep 2014 23:10:47 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/toggle-inset-map-not-working/m-p/328642#M30364</guid>
      <dc:creator>AlexGole</dc:creator>
      <dc:date>2014-09-02T23:10:47Z</dc:date>
    </item>
    <item>
      <title>Re: toggle inset map Not working</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/toggle-inset-map-not-working/m-p/328643#M30365</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Alex,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Your draggable element was being set to display none at the time of initialization. when overview map is initialized the dom size will be unknown, which is causing the issue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Add below lines at the end of your map load event. after &lt;STRONG&gt;domAttr.set(dojo.query(".action.zoomTo", map.infoWindow.domNode)[0], 'style', 'cursor:pointer;');&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;also resolve domStyle to "dojo/dom-style" module&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="javascript" __jive_macro_name="code" class="jive_macro_code jive_text_macro _jivemacro_uid_14097129915759429" jivemacro_uid="_14097129915759429"&gt;
&lt;P&gt;//add the overview map&lt;/P&gt;
&lt;P&gt;domStyle.set(dojo.query(".draggable")[0], "display", "block");&lt;/P&gt;
&lt;P&gt;overviewMapDijit = new esri.dijit.OverviewMap({&lt;/P&gt;
&lt;P&gt;&amp;nbsp; map: map,&lt;/P&gt;
&lt;P&gt;&amp;nbsp; width: 250,&lt;/P&gt;
&lt;P&gt;&amp;nbsp; height: 150&lt;/P&gt;
&lt;P&gt;}, dojo.byId('overviewMapDiv'));&lt;/P&gt;
&lt;P&gt;overviewMapDijit.startup();&lt;/P&gt;
&lt;P&gt;domStyle.set(dojo.query(".draggable")[0], "display", "none");&lt;/P&gt;
&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Untitled.png" class="jive-image image-1" src="https://community.esri.com/legacyfs/online/7264_Untitled.png" style="width: 620px; height: 491px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Sep 2014 03:00:06 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/toggle-inset-map-not-working/m-p/328643#M30365</guid>
      <dc:creator>RiyasDeen</dc:creator>
      <dc:date>2014-09-03T03:00:06Z</dc:date>
    </item>
    <item>
      <title>Re: toggle inset map Not working</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/toggle-inset-map-not-working/m-p/328644#M30366</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That was exactly it! Sweet! I am really impressed. Thank you!&lt;/P&gt;&lt;P&gt;Alex&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Sep 2014 16:00:11 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/toggle-inset-map-not-working/m-p/328644#M30366</guid>
      <dc:creator>AlexGole</dc:creator>
      <dc:date>2014-09-03T16:00:11Z</dc:date>
    </item>
    <item>
      <title>Re: toggle inset map Not working</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/toggle-inset-map-not-working/m-p/328645#M30367</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is it possible to reposition the inset map on the map with domStyle as well then?&lt;/P&gt;&lt;P&gt;Alex&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Sep 2014 17:14:59 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/toggle-inset-map-not-working/m-p/328645#M30367</guid>
      <dc:creator>AlexGole</dc:creator>
      <dc:date>2014-09-03T17:14:59Z</dc:date>
    </item>
  </channel>
</rss>

