<?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: Feature layer not getting drawn during a centerAndZoom in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/feature-layer-not-getting-drawn-during-a/m-p/120239#M11203</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;After looking through the forums I have come across similar posts, such as:&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://forums.arcgis.com/threads/3980-centerAndZoom-is-still-not-work-in-2.0?highlight=centerAndZoom"&gt;http://forums.arcgis.com/threads/3980-centerAndZoom-is-still-not-work-in-2.0?highlight=centerAndZoom&lt;BR /&gt;&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;It appears that this problem still exists when you have both a TiledMapService and a DynamicMapService.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This is a show stopper.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Charlie&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 24 Jan 2012 19:05:50 GMT</pubDate>
    <dc:creator>DougCollins</dc:creator>
    <dc:date>2012-01-24T19:05:50Z</dc:date>
    <item>
      <title>Feature layer not getting drawn during a centerAndZoom</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/feature-layer-not-getting-drawn-during-a/m-p/120238#M11202</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Greetings,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have an application with 1 ArcGISTiledMapServiceLayer as the base layer and 1 ArcGISDynamicMapServiceLayer (feature layer) with points as the features.&amp;nbsp; I have a JavaScript function that centers on a particular point and zooms to that point (i.e. map.centerAndZoom(centerPt, zoomLevel) ).&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If the zoomLevel changes from one point to the next, then the points do not show up until I move the map a bit to change the extent a bit.&amp;nbsp; I have tried using layer.hide() and layer.show() but the points still do not display until I move the map a bit.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Does anyone know of a way to refresh the feature layer so that the points will display?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Any help with this is greatly appreciated.&amp;nbsp; I have run out of ideas!&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;It seems that there should be a refresh event in the API that would accomplish the same thing as physically moving the map.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Charlie&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Jan 2012 17:01:40 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/feature-layer-not-getting-drawn-during-a/m-p/120238#M11202</guid>
      <dc:creator>DougCollins</dc:creator>
      <dc:date>2012-01-24T17:01:40Z</dc:date>
    </item>
    <item>
      <title>Re: Feature layer not getting drawn during a centerAndZoom</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/feature-layer-not-getting-drawn-during-a/m-p/120239#M11203</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;After looking through the forums I have come across similar posts, such as:&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://forums.arcgis.com/threads/3980-centerAndZoom-is-still-not-work-in-2.0?highlight=centerAndZoom"&gt;http://forums.arcgis.com/threads/3980-centerAndZoom-is-still-not-work-in-2.0?highlight=centerAndZoom&lt;BR /&gt;&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;It appears that this problem still exists when you have both a TiledMapService and a DynamicMapService.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This is a show stopper.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Charlie&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Jan 2012 19:05:50 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/feature-layer-not-getting-drawn-during-a/m-p/120239#M11203</guid>
      <dc:creator>DougCollins</dc:creator>
      <dc:date>2012-01-24T19:05:50Z</dc:date>
    </item>
    <item>
      <title>Re: Feature layer not getting drawn during a centerAndZoom</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/feature-layer-not-getting-drawn-during-a/m-p/120240#M11204</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Charlie,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If you're an ArcGISDynamicMapServiceLayer, that's not what we call a &lt;/SPAN&gt;&lt;A href="http://help.arcgis.com/en/webapi/javascript/arcgis/help/jsapi/featurelayer.htm"&gt;feature layer&lt;/A&gt;&lt;SPAN&gt;. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Can you provide a repro of this issue?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Jan 2012 19:54:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/feature-layer-not-getting-drawn-during-a/m-p/120240#M11204</guid>
      <dc:creator>derekswingley1</dc:creator>
      <dc:date>2012-01-24T19:54:44Z</dc:date>
    </item>
    <item>
      <title>Re: Feature layer not getting drawn during a centerAndZoom</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/feature-layer-not-getting-drawn-during-a/m-p/120241#M11205</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;After searching back a couple of years through the forums, I finally found an answer for my problem.&amp;nbsp; When defining a centerPoint for the centerAndZoom method, you must assign a SpatialReference to the centerPoint.&amp;nbsp; Typically you define a SpatialReference for the Extent when setting up for this method, but it was not clear from the documentation that a SpatialReference must also be assigned to the centerPoint.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Charlie&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Jan 2012 14:30:38 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/feature-layer-not-getting-drawn-during-a/m-p/120241#M11205</guid>
      <dc:creator>DougCollins</dc:creator>
      <dc:date>2012-01-25T14:30:38Z</dc:date>
    </item>
    <item>
      <title>Re: Feature layer not getting drawn during a centerAndZoom</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/feature-layer-not-getting-drawn-during-a/m-p/120242#M11206</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;It's implied that the mapPoint parameter for &lt;/SPAN&gt;&lt;A href="http://help.arcgis.com/en/webapi/javascript/arcgis/help/jsapi/map.htm#centerAndZoom"&gt;centerAndZoom&lt;/A&gt;&lt;SPAN&gt; needs a spatial reference as it links to the doc for &lt;/SPAN&gt;&lt;A href="http://help.arcgis.com/en/webapi/javascript/arcgis/help/jsapi/point.htm"&gt;esri.geometry.Point&lt;/A&gt;&lt;SPAN&gt;. SpatialReference for the point class is documented as required.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Anyway, glad you got it figured out!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Jan 2012 18:18:01 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/feature-layer-not-getting-drawn-during-a/m-p/120242#M11206</guid>
      <dc:creator>derekswingley1</dc:creator>
      <dc:date>2012-01-25T18:18:01Z</dc:date>
    </item>
  </channel>
</rss>

