dojo.connect(kml, 'onLoad', function() { var layers = kml.getLayers(); var graphics = layers[0].graphics; dojo.forEach(graphics, function(graphic){ var json = {title:"${name}",content:"${description}"} infoTemplate = new esri.InfoTemplate(json); graphic.setInfoTemplate(json); }); });
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.