Feature layer not getting drawn during a centerAndZoom

Discussion created by ccgage on Jan 24, 2012
Latest reply on Jan 25, 2012 by DSwingley-esristaff

I have an application with 1 ArcGISTiledMapServiceLayer as the base layer and 1 ArcGISDynamicMapServiceLayer (feature layer) with points as the features.  I have a JavaScript function that centers on a particular point and zooms to that point (i.e. map.centerAndZoom(centerPt, zoomLevel) ). 

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.  I have tried using layer.hide() and but the points still do not display until I move the map a bit.

Does anyone know of a way to refresh the feature layer so that the points will display?
Any help with this is greatly appreciated.  I have run out of ideas!
It seems that there should be a refresh event in the API that would accomplish the same thing as physically moving the map.