<?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: Zoom and Center not working on MapView using MapImageLayer in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/zoom-and-center-not-working-on-mapview-using/m-p/356935#M33050</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;David,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;If your basemap is not tiled then the zoom property has no bearing in your situation.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 10 Aug 2018 13:22:52 GMT</pubDate>
    <dc:creator>RobertScheitlin__GISP</dc:creator>
    <dc:date>2018-08-10T13:22:52Z</dc:date>
    <item>
      <title>Zoom and Center not working on MapView using MapImageLayer</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/zoom-and-center-not-working-on-mapview-using/m-p/356934#M33049</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I declare a MapImageLayer using the following. It is a service hosted locally.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;var baseMapLayer = new MapImageLayer({&lt;BR /&gt;&lt;SPAN&gt; url: "&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=https%3A%2F%2Fesridev.nsamedia.com%2Farcgis%2Frest%2Fservices%2FStates%2FMapServer" rel="nofollow" target="_blank"&gt;https://esridev.nsamedia.com/arcgis/rest/services/States/MapServer&lt;/A&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;BR /&gt; });&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I apply it to a new BaseMap.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;var basemapDefault = new Basemap({&lt;BR /&gt; baseLayers: [baseMapLayer],&lt;BR /&gt; title: "Custom Basemap",&lt;BR /&gt; id: "myBasemap"&lt;BR /&gt; });&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I apply the basemapDefault to a Map object and then use that Map object in my MapView&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;var map = new Map({&lt;BR /&gt; basemap: basemapDefault,&lt;BR /&gt; layers: [highlightGeographyLyr, colorOverlayLyr, hatchOverlayLyr, locationOverlayLyr, competitorOverlayLyr]&amp;nbsp;&lt;BR /&gt; });&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;var view = new MapView({&lt;BR /&gt; container: "viewDiv",&amp;nbsp;&lt;BR /&gt; map: map,&amp;nbsp;&lt;BR /&gt; zoom: 20,&amp;nbsp;&lt;BR /&gt; center: [-119.41793, 36.7783]&amp;nbsp;&lt;BR /&gt; });&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Everything works correctly except for my zoom and center property. No matter what I put in the zoom or center, the map initially loads that same way.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What I am doing wrong?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Aug 2018 12:56:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/zoom-and-center-not-working-on-mapview-using/m-p/356934#M33049</guid>
      <dc:creator>DavidKucharski</dc:creator>
      <dc:date>2018-08-10T12:56:44Z</dc:date>
    </item>
    <item>
      <title>Re: Zoom and Center not working on MapView using MapImageLayer</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/zoom-and-center-not-working-on-mapview-using/m-p/356935#M33050</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;David,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;If your basemap is not tiled then the zoom property has no bearing in your situation.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Aug 2018 13:22:52 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/zoom-and-center-not-working-on-mapview-using/m-p/356935#M33050</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2018-08-10T13:22:52Z</dc:date>
    </item>
    <item>
      <title>Re: Zoom and Center not working on MapView using MapImageLayer</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/zoom-and-center-not-working-on-mapview-using/m-p/356936#M33051</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Robert, thank you again.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My basemap is not tiled. So is there any way to set the my map so when initially loaded it will be at a specific area at a specific scale? I am having a user setup their map the way they want it, so when they come back into it, the map looks the same.&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Aug 2018 13:27:03 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/zoom-and-center-not-working-on-mapview-using/m-p/356936#M33051</guid>
      <dc:creator>DavidKucharski</dc:creator>
      <dc:date>2018-08-10T13:27:03Z</dc:date>
    </item>
    <item>
      <title>Re: Zoom and Center not working on MapView using MapImageLayer</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/zoom-and-center-not-working-on-mapview-using/m-p/356937#M33052</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;David,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; Sure you just use the scale property instead of zoom.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Aug 2018 13:39:07 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/zoom-and-center-not-working-on-mapview-using/m-p/356937#M33052</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2018-08-10T13:39:07Z</dc:date>
    </item>
    <item>
      <title>Re: Zoom and Center not working on MapView using MapImageLayer</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/zoom-and-center-not-working-on-mapview-using/m-p/356938#M33053</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Aug 2018 14:22:00 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/zoom-and-center-not-working-on-mapview-using/m-p/356938#M33053</guid>
      <dc:creator>DavidKucharski</dc:creator>
      <dc:date>2018-08-10T14:22:00Z</dc:date>
    </item>
  </channel>
</rss>

