<?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: Mobile example: issues with featurelayer, map load events in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/mobile-example-issues-with-featurelayer-map-load/m-p/694705#M64611</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Update - I removed all the references to map.resize and map.reposition and commented out the function that was supposed to adjust the the map height.&amp;nbsp; I am no longer seeing the map disappear after a few seconds, but the size of the map is still set to 400 X 400.&amp;nbsp; The map container it's in fills the screen, its only mapDiv that's cropped.&amp;nbsp; I've kept my jsFiddle updated with my local changes if anyone is willing to take a look.&amp;nbsp;&amp;nbsp; This is going to be a nice basic mobile example for somebody if I can just get this last bit figured out!&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://jsfiddle.net/schlot/7t8Lu/1/" rel="nofollow noopener noreferrer" target="_blank"&gt;http://jsfiddle.net/schlot/7t8Lu/1/&lt;/A&gt;&lt;BR /&gt;&lt;SPAN&gt;map definition:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
 map = new Map("mapDiv", {&amp;nbsp;&amp;nbsp;&amp;nbsp; 
&amp;nbsp;&amp;nbsp;&amp;nbsp; basemap: "streets",
&amp;nbsp;&amp;nbsp;&amp;nbsp; center: [-92.593, 38.5],
&amp;nbsp;&amp;nbsp;&amp;nbsp; zoom: 6,
&amp;nbsp;&amp;nbsp;&amp;nbsp; infoWindow: popup,
&amp;nbsp;&amp;nbsp; });


// divs

&amp;lt;div id="mapView" data-dojo-type="dojox/mobile/View" &amp;gt;
&amp;lt;div id="mapHeader" data-dojo-type="dojox/mobile/Heading"&amp;gt;
&amp;lt;ul data-dojo-type="dojox/mobile/TabBar" data-dojo-props='barType:"segmentedControl"'&amp;gt;
&amp;nbsp; &amp;lt;li data-dojo-type="dojox/mobile/TabBarButton" data-dojo-props='selected:true, moveTo:"mainView"'&amp;gt;Main&amp;lt;/li&amp;gt;
&amp;nbsp; &amp;lt;li data-dojo-type="dojox/mobile/TabBarButton" data-dojo-props='moveTo:"listView"'&amp;gt;Advisory List&amp;lt;/li&amp;gt;
&amp;lt;/ul&amp;gt;
&amp;lt;/div&amp;gt; 
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;div id="mapContainer" data-dojo-type="dojox/mobile/ContentPane"&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;div id="HomeButton"&amp;gt;&amp;lt;/div&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;div id="mapDiv"&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/div&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/div&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/div&amp;gt;
&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 12 Dec 2021 05:14:16 GMT</pubDate>
    <dc:creator>TracySchloss</dc:creator>
    <dc:date>2021-12-12T05:14:16Z</dc:date>
    <item>
      <title>Mobile example: issues with featurelayer, map load events</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/mobile-example-issues-with-featurelayer-map-load/m-p/694704#M64610</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I'm expanding on a basic mobile example, trying to add a featurelayer of my own data and&amp;nbsp; list of fish advisories (how many of what kinds of fish it's safe to eat from a river). It opens with a choice of viewing a list or a map.&amp;nbsp; From the list, the user should be able to click the map button to zoom into that river.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;When viewing the map first, it is extremely cropped on the sides,and doesn't initially load my featurelayer, which generates errors (unable to draw graphic). There is a map load event that is supposed to manage the screen resolution and set the display.&amp;nbsp; I've tried commenting the line that fires that map on load event, but it is still cropped.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If I start with the list, the first time I click the map button, it doesn't draw, giving errors on the featurelayer.&amp;nbsp; But subsequent selections do show the featurelayer and its zoomed to the correct river.&amp;nbsp; Obviously events are not firing/responding in the order I expect to see them.&amp;nbsp; I have no clue why my map is only showing for a few seconds before it disappears. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I still haven't figured out how to post my code anywhere for people to view and edit it for me.&amp;nbsp; That's a whole other thread to post!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Update:&amp;nbsp; Here's my first attempt at using JSFiddle.&amp;nbsp; At least this made me try again to use it!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://jsfiddle.net/schlot/7t8Lu/1/"&gt;http://jsfiddle.net/schlot/7t8Lu/1/&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Mar 2014 15:45:05 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/mobile-example-issues-with-featurelayer-map-load/m-p/694704#M64610</guid>
      <dc:creator>TracySchloss</dc:creator>
      <dc:date>2014-03-05T15:45:05Z</dc:date>
    </item>
    <item>
      <title>Re: Mobile example: issues with featurelayer, map load events</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/mobile-example-issues-with-featurelayer-map-load/m-p/694705#M64611</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Update - I removed all the references to map.resize and map.reposition and commented out the function that was supposed to adjust the the map height.&amp;nbsp; I am no longer seeing the map disappear after a few seconds, but the size of the map is still set to 400 X 400.&amp;nbsp; The map container it's in fills the screen, its only mapDiv that's cropped.&amp;nbsp; I've kept my jsFiddle updated with my local changes if anyone is willing to take a look.&amp;nbsp;&amp;nbsp; This is going to be a nice basic mobile example for somebody if I can just get this last bit figured out!&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://jsfiddle.net/schlot/7t8Lu/1/" rel="nofollow noopener noreferrer" target="_blank"&gt;http://jsfiddle.net/schlot/7t8Lu/1/&lt;/A&gt;&lt;BR /&gt;&lt;SPAN&gt;map definition:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
 map = new Map("mapDiv", {&amp;nbsp;&amp;nbsp;&amp;nbsp; 
&amp;nbsp;&amp;nbsp;&amp;nbsp; basemap: "streets",
&amp;nbsp;&amp;nbsp;&amp;nbsp; center: [-92.593, 38.5],
&amp;nbsp;&amp;nbsp;&amp;nbsp; zoom: 6,
&amp;nbsp;&amp;nbsp;&amp;nbsp; infoWindow: popup,
&amp;nbsp;&amp;nbsp; });


// divs

&amp;lt;div id="mapView" data-dojo-type="dojox/mobile/View" &amp;gt;
&amp;lt;div id="mapHeader" data-dojo-type="dojox/mobile/Heading"&amp;gt;
&amp;lt;ul data-dojo-type="dojox/mobile/TabBar" data-dojo-props='barType:"segmentedControl"'&amp;gt;
&amp;nbsp; &amp;lt;li data-dojo-type="dojox/mobile/TabBarButton" data-dojo-props='selected:true, moveTo:"mainView"'&amp;gt;Main&amp;lt;/li&amp;gt;
&amp;nbsp; &amp;lt;li data-dojo-type="dojox/mobile/TabBarButton" data-dojo-props='moveTo:"listView"'&amp;gt;Advisory List&amp;lt;/li&amp;gt;
&amp;lt;/ul&amp;gt;
&amp;lt;/div&amp;gt; 
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;div id="mapContainer" data-dojo-type="dojox/mobile/ContentPane"&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;div id="HomeButton"&amp;gt;&amp;lt;/div&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;div id="mapDiv"&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/div&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/div&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/div&amp;gt;
&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 05:14:16 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/mobile-example-issues-with-featurelayer-map-load/m-p/694705#M64611</guid>
      <dc:creator>TracySchloss</dc:creator>
      <dc:date>2021-12-12T05:14:16Z</dc:date>
    </item>
    <item>
      <title>Re: Mobile example: issues with featurelayer, map load events - cropped map</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/mobile-example-issues-with-featurelayer-map-load/m-p/694706#M64612</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I think I found a clue of what is happening.&amp;nbsp; My opening view isn't the map, it's a couple of choices for either viewing the map or a list.&amp;nbsp; Apparently when you do this, the default map ends up created as 400 x 400 because the div it's in isn't initialized yet.&amp;nbsp; I added some code in my map.on ('load') to set the height of my mapDiv to be 100% and it is now filling the screen.&amp;nbsp; I'm not sure I have it set to the right listener, but at least it isn't cropped!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Mar 2014 15:35:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/mobile-example-issues-with-featurelayer-map-load/m-p/694706#M64612</guid>
      <dc:creator>TracySchloss</dc:creator>
      <dc:date>2014-03-06T15:35:44Z</dc:date>
    </item>
  </channel>
</rss>

