var template = new esri.InfoTemplate(); template.setContent(getTextContent); function getTextContent(graphic) { var attribute1 = graphic.attributes.Attribute1; var attribute2 = graphic.attributes.Attribute2; if (attribute1.length > 20 || attribute2.length > 20) { map.infoWindow.resize(x,y); //Resize the infoWindow } var content = "<b>Attribute 1</b>: " + attribute1 + "<br>"; content += "<b>Attribute 2</b>: " + attribute2; return content; }
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.