sylvain.kerdreux

KML Layer and new line

Discussion created by sylvain.kerdreux on Mar 8, 2012
Latest reply on Mar 9, 2012 by DSwingley-esristaff
I Create a small KML file :

<kml xmlns="http://earth.google.com/kml/2.1">
  <Document>
    <name>KML Name</name>
    <description>KML Description</description>
    <Placemark>
         <name>Trinity College</name>
         <description>
             Trinity College...
            <br/>
            link : <a href="http://www.tcd.ie/visitors/">http://www.tcd.ie/visitors/</a><br/><br/>
            Price : none <br/><br/>
         </description>
         <Point>
            <coordinates>-6.25884, 53.3445</coordinates>
         </Point>
    </Placemark>
  </Document>
</kml>



Using google earth, html markup <br/> display new line.
However using kml layer with arcgis API, it does not add new line but it does not display markup.
here the code to add my kml layer :
  var kmlUrl = 'http://myLocalServer/data.kml';
  kml = new esri.layers.KMLLayer(kmlUrl);
  map.addLayer(kml);  


I also try \n but it only display \n when I click on my feature.

so how to add new line into description markup ?

Sylvain.

Outcomes