<?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: Hiding the map: problems with building a mobile application with AngularJS in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/hiding-the-map-problems-with-building-a-mobile/m-p/548604#M51042</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I'm going to fix it by setting autoResize to false.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 15 Apr 2013 13:30:25 GMT</pubDate>
    <dc:creator>ThomasCoopman</dc:creator>
    <dc:date>2013-04-15T13:30:25Z</dc:date>
    <item>
      <title>Hiding the map: problems with building a mobile application with AngularJS</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/hiding-the-map-problems-with-building-a-mobile/m-p/548602#M51040</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I've got a question about building a mobile application with the ArcGIS JS API (3.4 compact) and AngularJS (&lt;/SPAN&gt;&lt;A href="http://angularjs.org/"&gt;http://angularjs.org/&lt;/A&gt;&lt;SPAN&gt; - a javascript framework for building web applications).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The application we are developping is a single page app where you can switch between views. A very simple sample can be found here: &lt;/SPAN&gt;&lt;A href="http://plnkr.co/edit/LKAyLwV69EQqgLl5LzEx?p=preview"&gt;http://plnkr.co/edit/LKAyLwV69EQqgLl5LzEx?p=preview&lt;/A&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The problem we are experiencing is that after switching between views the ArcGIS Map doesn't always render again correctly (goes blank - sometimes the zoomSlider is not visible also). &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;As far as we have found the problems &lt;/SPAN&gt;&lt;BR /&gt;&lt;UL&gt;&lt;BR /&gt;&lt;LI&gt;Open the map&lt;/LI&gt;&lt;BR /&gt;&lt;LI&gt;Switch to an other view (map is not visible)&lt;/LI&gt;&lt;BR /&gt;&lt;LI&gt;Open the mobile keyboard (div resize)&lt;/LI&gt;&lt;BR /&gt;&lt;LI&gt;Switch back to the map (map is reattached to the div) -&amp;gt; the map doesn't render.&lt;/LI&gt;&lt;BR /&gt;&lt;/UL&gt;&lt;BR /&gt;&lt;SPAN&gt;By catching the updateExtent event, I can see that the extent gets set to NaN, but manually calling setExtent with a correct extent doesn't work either.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The current solution use Angular ngView (like in the example). As far as I can tell this completely removes the div from the DOM. The div is still available through esri.map.container and I use this div to reattach the existing div to the DOM. I've also tried to hide the map by setting display:none to the map div but this results in simular problems.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;How do I solve this problem?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Possible solutions:&lt;/SPAN&gt;&lt;BR /&gt;&lt;OL&gt;&lt;BR /&gt;&lt;LI&gt;Add a new map every time with new esri.map (expensive to set all the state again - so I don't like this solution)&lt;/LI&gt;&lt;BR /&gt;&lt;LI&gt;Is it possible to update the div (element esri.map.id) after switching tabs?&lt;/LI&gt;&lt;BR /&gt;&lt;LI&gt;Is it possible to do something like esri.dijit.OverviewMap.hide and .show?&lt;/LI&gt;&lt;BR /&gt;&lt;LI&gt;Can I pause the map, so that I pause the map before switching away from the map, and enable it again after I have switched back (pausing would be to stop all events from propagating to the map).&lt;/LI&gt;&lt;BR /&gt;&lt;LI&gt;Other possibilities? &lt;/LI&gt;&lt;BR /&gt;&lt;/OL&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Apr 2013 07:27:33 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/hiding-the-map-problems-with-building-a-mobile/m-p/548602#M51040</guid>
      <dc:creator>ThomasCoopman</dc:creator>
      <dc:date>2013-04-15T07:27:33Z</dc:date>
    </item>
    <item>
      <title>Re: Hiding the map: problems with building a mobile application with AngularJS</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/hiding-the-map-problems-with-building-a-mobile/m-p/548603#M51041</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I've done some more debugging and found the following things.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The map goes blank after this exact sequence:&lt;/SPAN&gt;&lt;BR /&gt;&lt;OL&gt;&lt;BR /&gt;&lt;LI&gt;Open the map&lt;/LI&gt;&lt;BR /&gt;&lt;LI&gt;Switch to an other view (map is not visible)&lt;/LI&gt;&lt;BR /&gt;&lt;LI&gt;Resize the div (map gets onResize event that gets 0 as its size)&lt;/LI&gt;&lt;BR /&gt;&lt;LI&gt;Switch back to the map (the map is still there).&lt;/LI&gt;&lt;BR /&gt;&lt;LI&gt;Zoom on the map. The map disappears.&lt;/LI&gt;&lt;BR /&gt;&lt;/OL&gt;&lt;BR /&gt;&lt;SPAN&gt;At the moment we switch back to the map and the height of the map changes from 0 (it was not visible) to xxx (visible again) the map extent gets set to Nan for all x and y.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Calling reposition or resize does not fix this, instead it does something weird. After these methods are called, the map stays blank, but the extent is valid again. However, as soon as I pan or zoom the map, the extent goes back to Nan for all x and y. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Calling setExtent does seem to solve the problem.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Is this a bug?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Apr 2013 13:14:00 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/hiding-the-map-problems-with-building-a-mobile/m-p/548603#M51041</guid>
      <dc:creator>ThomasCoopman</dc:creator>
      <dc:date>2013-04-15T13:14:00Z</dc:date>
    </item>
    <item>
      <title>Re: Hiding the map: problems with building a mobile application with AngularJS</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/hiding-the-map-problems-with-building-a-mobile/m-p/548604#M51042</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I'm going to fix it by setting autoResize to false.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Apr 2013 13:30:25 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/hiding-the-map-problems-with-building-a-mobile/m-p/548604#M51042</guid>
      <dc:creator>ThomasCoopman</dc:creator>
      <dc:date>2013-04-15T13:30:25Z</dc:date>
    </item>
    <item>
      <title>Re: Hiding the map: problems with building a mobile application with AngularJS</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/hiding-the-map-problems-with-building-a-mobile/m-p/548605#M51043</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I experienced problems of this sort when I tried to use the ArcGIS API with jQuery Mobile. I never found a fix for it, though.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://forums.arcgis.com/threads/74233-Browser-resizing-issue-with-jQuery-Mobile-samples"&gt;I made a forum post about it.&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Apr 2013 21:58:30 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/hiding-the-map-problems-with-building-a-mobile/m-p/548605#M51043</guid>
      <dc:creator>JeffJacobson</dc:creator>
      <dc:date>2013-04-15T21:58:30Z</dc:date>
    </item>
    <item>
      <title>Re: Hiding the map: problems with building a mobile application with AngularJS</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/hiding-the-map-problems-with-building-a-mobile/m-p/548606#M51044</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;This is indeed the same problem. For people wanting to test this issue, use the Plunker example I provided (here: &lt;/SPAN&gt;&lt;A href="http://plnkr.co/edit/LKAyLwV69EQqgLl5LzEx?p=preview"&gt;http://plnkr.co/edit/LKAyLwV69EQqgLl5LzEx?p=preview&lt;/A&gt;&lt;SPAN&gt;).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;First go to the map, then back to main. Now resize the window so you don't see the title anymore and then size it up again. Now switch back to the map. Play around with the map (zoom, pan) and you will see the strange behaviour.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Apr 2013 06:15:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/hiding-the-map-problems-with-building-a-mobile/m-p/548606#M51044</guid>
      <dc:creator>ThomasCoopman</dc:creator>
      <dc:date>2013-04-16T06:15:41Z</dc:date>
    </item>
    <item>
      <title>Re: Hiding the map: problems with building a mobile application with AngularJS</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/hiding-the-map-problems-with-building-a-mobile/m-p/548607#M51045</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I also had to tackle this with a 'single-page' jQuery mobile app. If you resize the map when it isn't visible, it breaks. I used the following code for jquery mobile.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
 //Create map or resize it.
&amp;nbsp; $('#mapPage').bind('pageshow', function (event, ui) {
&amp;nbsp;&amp;nbsp;&amp;nbsp; if (!map) {//If this is the first time the page is loaded we need to create the map
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; createMap();
&amp;nbsp;&amp;nbsp;&amp;nbsp; }
&amp;nbsp;&amp;nbsp;&amp;nbsp; resizeMap(); //Always resize in case the window resized while on another page
&amp;nbsp; });

//Run this whenever the window resizes. We can't resize when the map isn't visible because then it goes crazy when the map is shown
&amp;nbsp; $(window).resize(function () {
&amp;nbsp;&amp;nbsp;&amp;nbsp; if ($('#mapPage:visible').length) {
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; resizeMap();
&amp;nbsp;&amp;nbsp;&amp;nbsp; }
&amp;nbsp; });
&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Now that they have baked in the resize function to the api automatically, like was previously mentioned, you'll need to disable autoresize and handle it all yourself.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 23:44:06 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/hiding-the-map-problems-with-building-a-mobile/m-p/548607#M51045</guid>
      <dc:creator>MattLane</dc:creator>
      <dc:date>2021-12-11T23:44:06Z</dc:date>
    </item>
    <item>
      <title>Re: Hiding the map: problems with building a mobile application with AngularJS</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/hiding-the-map-problems-with-building-a-mobile/m-p/548608#M51046</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hey guys,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I hate to drag this thread up from the dead, but I cannot get this solution to work. I was hoping someone could provide me with greater detail. The first thing I did was try to set autoResize to false, which does not seem to do anything at all. The map still re-sizes regardless of the setting. Does anyone happen to have a full example, or is anyone able to better explain this to me? Any help would be greatly appreciated.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Eddie&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 May 2013 17:42:28 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/hiding-the-map-problems-with-building-a-mobile/m-p/548608#M51046</guid>
      <dc:creator>EdwardRozum</dc:creator>
      <dc:date>2013-05-21T17:42:28Z</dc:date>
    </item>
    <item>
      <title>Re: Hiding the map: problems with building a mobile application with AngularJS</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/hiding-the-map-problems-with-building-a-mobile/m-p/548609#M51047</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;The underlying problem is something we'll provide a solution for at the next release. To fix this issue for now - as others have noted- you should be able to workaround this by setting autoResize to false when you create the map. Once you do this you'll have to do the work of resizing the map when the browser resizes. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;You mentioned that you've set autoResize to false and it's still doing the automatic resize. Can you post a test page that shows the issue?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 May 2013 21:13:39 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/hiding-the-map-problems-with-building-a-mobile/m-p/548609#M51047</guid>
      <dc:creator>KellyHutchins</dc:creator>
      <dc:date>2013-05-21T21:13:39Z</dc:date>
    </item>
    <item>
      <title>Re: Hiding the map: problems with building a mobile application with AngularJS</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/hiding-the-map-problems-with-building-a-mobile/m-p/548610#M51048</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Its going to be tough to post the exact example, because I am using a jquery mobile to do a page transition for mobile popup. So I had to make a minor modification to PopupMobile.js &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I did get the autoResize property to work. I believe it was a caching issue. Unfortunately even when autoResize is set to false, the map fails when it is hidden, the window is resized, and I browse back to the map. I am using the following: &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;//map setup&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;map = new esri.Map("map", {&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; infoWindow: popup,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; zoom: zoomLevel,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; slider: true,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; sliderPosition: "bottom-left",&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; extent: initExtent,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; autoResize: false&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; })&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;//using bind maps&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;bingMapServiceLayer = new esri.virtualearth.VETiledLayer({&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; bingMapsKey: bingMapKey, // trial (90 days) from &lt;/SPAN&gt;&lt;A href="https://www.bingmapsportal.com"&gt;https://www.bingmapsportal.com&lt;/A&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; mapStyle: esri.virtualearth.VETiledLayer.MAP_STYLE_ROAD // can also use MAP_STYLE_AERIAL &amp;amp; MAP_STYLE_AERIAL_WITH_LABELS&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; });&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;//I resize the map on initial load and on orientation change when visible with this&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;function resizeMap() {&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; $('#map').height($(window).height() - $('[data-role=header]').height());&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; map.resize();&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;//The map fails when I return to the page with this in the console&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Unexpected value NaN parsing x attribute.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Unexpected value NaN parsing y attribute.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Unexpected value matrix(1.00000000,0.00000000,0.00000000,1.00000000,NaN,NaN) parsing transform attribute.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Am I missing a step. Perhaps there is a better way to to resize that I am not using. Again, I appreciate all the help guys. I'm new to the map world&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 May 2013 09:54:00 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/hiding-the-map-problems-with-building-a-mobile/m-p/548610#M51048</guid>
      <dc:creator>EdwardRozum</dc:creator>
      <dc:date>2013-05-22T09:54:00Z</dc:date>
    </item>
    <item>
      <title>Re: Hiding the map: problems with building a mobile application with AngularJS</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/hiding-the-map-problems-with-building-a-mobile/m-p/548611#M51049</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I was able to get this to work with jQuery Mobile.&amp;nbsp; &lt;/SPAN&gt;&lt;A href="https://github.com/WSDOT-GIS/Mobile-Map"&gt;I posted this code on GitHub&lt;/A&gt;&lt;SPAN&gt;. You can test it out &lt;/SPAN&gt;&lt;A href="http://wsdot-gis.github.io/Mobile-Map/"&gt;here&lt;/A&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Let me know if you find any problems, as it hasn't been tested extensively. The best way to report an issue would be to &lt;/SPAN&gt;&lt;A href="https://github.com/WSDOT-GIS/Mobile-Map/issues"&gt;create an issue on the GitHub page&lt;/A&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 May 2013 14:43:05 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/hiding-the-map-problems-with-building-a-mobile/m-p/548611#M51049</guid>
      <dc:creator>JeffJacobson</dc:creator>
      <dc:date>2013-05-22T14:43:05Z</dc:date>
    </item>
    <item>
      <title>Re: Hiding the map: problems with building a mobile application with AngularJS</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/hiding-the-map-problems-with-building-a-mobile/m-p/548612#M51050</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks for taking a look at this. I used your exact code, only with the compact framework, and am getting the same svg error. Could it be because I have a esri.Graphic on the map at the time the page changes. I have a mapped point with a Mobile Popup info template attached to it. I am trying to edit your example to include a mapped point. Unfortunately, I don't really understand how to include esri.symbol.PictureMarkerSymbol in the manner you are doing it. I will work on it and try to get an example working. Thanks again.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Note: One quick addition.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I attached this event to your map dojo.connect(map, "onResize", resizeTest); and had it alert the width and height on resize. Your map does not alert a width and height on your non map page. If I attach the same event to my map object, the onRisize event does fire and re-size the map to 0 0, regardless if I have the autoResize: false property set. I am using a different api then you though. I'm using esricompact 3.3, if that makes a difference&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 May 2013 16:15:29 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/hiding-the-map-problems-with-building-a-mobile/m-p/548612#M51050</guid>
      <dc:creator>EdwardRozum</dc:creator>
      <dc:date>2013-05-22T16:15:29Z</dc:date>
    </item>
    <item>
      <title>Re: Hiding the map: problems with building a mobile application with AngularJS</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/hiding-the-map-problems-with-building-a-mobile/m-p/548613#M51051</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;hey guys,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I did find my issue. I had an event attached to orientationchanged that was messing up the method that Jeff provided in his example. All is working fine now. I appreciate your patience and help. I changed the resize function up a bit with the same affect.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;function resizeMap() {&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; if ($('#map-page:visible').length) {&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; $('#map').height($(window).height() - $('#header').height());&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; map.resize();&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; map.reposition();&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks again&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Eddie&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 May 2013 12:26:02 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/hiding-the-map-problems-with-building-a-mobile/m-p/548613#M51051</guid>
      <dc:creator>EdwardRozum</dc:creator>
      <dc:date>2013-05-23T12:26:02Z</dc:date>
    </item>
    <item>
      <title>Re: Hiding the map: problems with building a mobile application with AngularJS</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/hiding-the-map-problems-with-building-a-mobile/m-p/548614#M51052</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;The underlying problem is something we'll provide a solution for at the next release. To fix this issue for now - as others have noted- you should be able to workaround this by setting autoResize to false when you create the map. Once you do this you'll have to do the work of resizing the map when the browser resizes. &lt;BR /&gt;&lt;BR /&gt;You mentioned that you've set autoResize to false and it's still doing the automatic resize. Can you post a test page that shows the issue?&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Hello Kelly,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;when we can expect the next release of Javascript API with this bug fixed?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 May 2013 08:44:01 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/hiding-the-map-problems-with-building-a-mobile/m-p/548614#M51052</guid>
      <dc:creator>AshishArora</dc:creator>
      <dc:date>2013-05-29T08:44:01Z</dc:date>
    </item>
    <item>
      <title>Re: Hiding the map: problems with building a mobile application with AngularJS</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/hiding-the-map-problems-with-building-a-mobile/m-p/548615#M51053</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Hello Kelly,&lt;BR /&gt;&lt;BR /&gt;when we can expect the next release of Javascript API with this bug fixed?&lt;BR /&gt;&lt;BR /&gt;Thanks&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I just saw a new version of ArcGIS Javascript API 3.6 but unfortunately the release notes does not talk anything about the bug we discussed in this thread.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Aug 2013 11:26:31 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/hiding-the-map-problems-with-building-a-mobile/m-p/548615#M51053</guid>
      <dc:creator>AshishArora</dc:creator>
      <dc:date>2013-08-09T11:26:31Z</dc:date>
    </item>
    <item>
      <title>Re: Hiding the map: problems with building a mobile application with AngularJS</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/hiding-the-map-problems-with-building-a-mobile/m-p/548616#M51054</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;I just saw a new version of ArcGIS Javascript API 3.6 but unfortunately the release notes does not talk anything about the bug we discussed in this thread.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Any update if ESRI has fixed this issue in it's recent release of ArcGIS Javascript API 3.6&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Aug 2013 21:15:29 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/hiding-the-map-problems-with-building-a-mobile/m-p/548616#M51054</guid>
      <dc:creator>AshishArora</dc:creator>
      <dc:date>2013-08-15T21:15:29Z</dc:date>
    </item>
    <item>
      <title>Re: Hiding the map: problems with building a mobile application with AngularJS</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/hiding-the-map-problems-with-building-a-mobile/m-p/548617#M51055</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I have the same issue. Battling with angular and esri for a month now.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I just tried 3.8 version and the problem persist.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I would like to know what the known issue mentioned in the thread is.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks a lot.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jan 2014 19:19:45 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/hiding-the-map-problems-with-building-a-mobile/m-p/548617#M51055</guid>
      <dc:creator>JorgeFiallega</dc:creator>
      <dc:date>2014-01-16T19:19:45Z</dc:date>
    </item>
    <item>
      <title>Re: Hiding the map: problems with building a mobile application with AngularJS</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/hiding-the-map-problems-with-building-a-mobile/m-p/548618#M51056</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I tried to see if starting with a hidden map with ng-show="false", and then putting ng-show="true", I could see the map, but I get the following errors&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Error: Invalid negative value for &amp;lt;svg&amp;gt; attribute width="-2.222222328186035"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Error: Invalid negative value for &amp;lt;svg&amp;gt; attribute height="-2.222222328186035"&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Jan 2014 16:24:15 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/hiding-the-map-problems-with-building-a-mobile/m-p/548618#M51056</guid>
      <dc:creator>JorgeFiallega</dc:creator>
      <dc:date>2014-01-17T16:24:15Z</dc:date>
    </item>
    <item>
      <title>Re: Hiding the map: problems with building a mobile application with AngularJS</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/hiding-the-map-problems-with-building-a-mobile/m-p/548619#M51057</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I believe the behavior I am experiencing is related to this thread.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Basically when I show other divs dynamically given certain state that move the div of the map up or down, the pointer on the map still thinks it is in the old location.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;To ilustrate the current problem i have created the plunk&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://plnkr.co/edit/CsYXcThtQBakaVSwJJDl?p=preview"&gt;rubberband example&lt;/A&gt;&lt;BR /&gt;&lt;SPAN&gt;(I used as a base the plunk created on this thread)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;To reproduce the problem:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;1. click on map link&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;2. click on Zoom By rubber button&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;3. create a box in the map&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;4. Click "Show Message"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;5. click on Zoom By rubber button&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;6. You will see that when you try to create the box in the map, it is displaced by the height of the message.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Calling a map.resize every time I show the message will solve the problem, but this was just an example. My application will show and hide different pieces of the page depending on state that will make the map div move up or down.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I also tried the suggestions &lt;/SPAN&gt;&lt;A href="http://forums.arcgis.com/threads/5011-Map-Resizing-across-browsers"&gt;http://forums.arcgis.com/threads/5011-Map-Resizing-across-browsers&lt;/A&gt;&lt;SPAN&gt; and I was able to create the listener, but it only fires when resizing the window, besides this is not so much a resize of the div but changing the position.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This must be a fairly common usecase, &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;What am i missing ?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Jan 2014 03:04:02 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/hiding-the-map-problems-with-building-a-mobile/m-p/548619#M51057</guid>
      <dc:creator>JorgeFiallega</dc:creator>
      <dc:date>2014-01-21T03:04:02Z</dc:date>
    </item>
    <item>
      <title>Re: Hiding the map: problems with building a mobile application with AngularJS</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/hiding-the-map-problems-with-building-a-mobile/m-p/548620#M51058</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm at version 3.13 and am still encountering this problem. Has a fix been released?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 May 2015 18:16:45 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/hiding-the-map-problems-with-building-a-mobile/m-p/548620#M51058</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2015-05-11T18:16:45Z</dc:date>
    </item>
    <item>
      <title>Re: Hiding the map: problems with building a mobile application with AngularJS</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/hiding-the-map-problems-with-building-a-mobile/m-p/548621#M51059</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm also having the same problem in 3.13.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 May 2015 12:02:58 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/hiding-the-map-problems-with-building-a-mobile/m-p/548621#M51059</guid>
      <dc:creator>ScottDickison</dc:creator>
      <dc:date>2015-05-21T12:02:58Z</dc:date>
    </item>
  </channel>
</rss>

