var selFeature = results[0].feature; map.graphics.add(selFeature); var selLayer = results[0].layerName; selFeature.setInfoTemplate(template); map.infoWindow.setFeatures([selFeature]); //** IMPORTANT! **/ // YOU MUST SET THE TITLE **AFTER** CALLING SETFEATURES map.infoWindow.setTitle(selLayer); map.infoWindow.show(evt.mapPoint);
Membros conectados podem postar, seguir atualizações e mais. Novo aqui? Registre uma conta gratuita.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.