function showResults(featureSet){ //remove all graphics on the maps graphics layer map.graphics.clear(); //Performance enhancer - assign featureSet array to a single variable. var resultFeatures = featureSet.features; $.each(resultFeatures, function(index, featureItem){ featureItem.setSymbol(symbol); featureItem.setInfoTemplate(infoTemplate); map.graphics.add(featureItem); }); var extGraphics = GraphicsUtils.graphicsExtent(map.graphics.graphics); map.setExtent(extGraphics); }
Přihlášení členové mohou přispívat, sledovat aktualizace a další. Jste tu noví? Zaregistrujte si bezplatný účet.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.