//resize the map when the browser resizes - view the 'Resizing and repositioning the map' section in dojo.connect(map, 'onLoad', function () { dojo.connect(dijit.byId('map'), 'resize', function () { //resize the map if the div is resized clearTimeout(resizeTimer); resizeTimer = setTimeout(function () { map.resize(); map.reposition(); }, 500); }); }); }
Hi, when your extent changes the feature layer is most likely re-querying and redrawing your points since you are using ONDEMAND mode. It may not fit your work-flow, but there are other options such as "MODE_SELECTION" and "MODE_SNAPSHOT".