extGraphics = GraphicsUtils.graphicsExtent(resultFeatures); map.setExtent(extGraphics);
you can try this. It is written in AMD mode, so make sure you add "esri/graphicsUtils" in your require function parameters, and give it a local name "GraphicsUtils".extGraphics = GraphicsUtils.graphicsExtent(resultFeatures); map.setExtent(extGraphics);
Signed in members can post, follow updates, and more. New here? Register a free account.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.