Popup widget content random blank lines

223
0
04-08-2019 11:08 AM
JamesTruong
New Contributor II

Using 4.11, KMLLayer, Popup widget

When viewing feature attribute, I'm getting a large amount blank lines at top and bottom of the content box.

So far, I duplicable on placemark who description cdata is just a table.

Not sure what causing the blank lines.

I attached a sample kml file.

const content = createContent()
const popup = new Popup({
        title: title,
        content: content,
        location: point
});

<description><![CDATA[<table border="0" cellspacing="3" width="320" align="center">
	<tr align="left"><td colspan="2"><a href="http://www.volcano.si.edu/"><img src="http://www.volcano.si.edu/ge/gvplogo.png" width="172" height="32" /></a></td></tr>
	<tr align="center"><td colspan="2"><hr /><font size="6"><b>Ararat</b></font><br /><font size="5"><b>Eastern Turkey</b></font></td></tr>
	<tr align="center"><td colspan="2"><img src = "http://www.volcano.si.edu/Photos/small/111001.jpg"></td></tr>
	<tr align="justify">
		<td width="50%" align="left"><b>Volcano types:</b><br />
			    Stratovolcano<br />    Pyroclastic cones
		</td>
		<td width="50%" align="left">
			<b>Summit Elev:</b> 5165 m<br />
			<b>Latitude:</b> 39.70&deg;N<br />
			<b>Longitude:</b> 44.30&deg;E
		</td>
	</tr>
	<tr><td colspan="2"><p align="justify">The 5165-m-high, double-peaked stratovolcano Mount Ararat, also known as Agri Dagi, is Turkey's highest, largest volume, and easternmost volcano.  Glacier-clad Ararat, along with its twin volcano, 3925-m-high Kucuk Ararat (or Lesser Ararat), covers an area of 1000 sq km at the eastern end of a SSW-ESE line of volcanoes extending from Nemrut Dagi.  Construction of the Greater and Lesser Ararat volcanoes was followed by a period of extensive flank eruptions, many erupted along N-S-trending fissures.  The initial stage of flank eruptions produced a cluster of cinder cones and dacitic-rhyolitic lava domes surrounding Greater Ararat and a series of pyroclastic cones and domes on the western flank of Lesser Ararat.  Late-stage activity formed large pyroclastic cones lower on the flanks of the two volcanoes.  Ararat appears to have been active during the 3rd millennium BC; pyroclastic-flow deposits overlie early Bronze Age artifacts and human remains.   Karakhanian et al. (2002) reported historical evidence for a phreatic eruption and pyroclastic flow at the time of a July 1840 earthquake and landslide.</p></td></tr>
	<tr><td colspan="2"><p align="right"><i><a href="http://www.volcano.si.edu/world/volcano.cfm?vnum=0103-04-&amp;volpage=photos&amp;photo=111001">Larger photo with caption and credit.</a></i></p></td></tr>
	<tr height="6"><td colspan="2"><hr /></td></tr>
	</table>
	<table border="0" cellspacing="0" cellpadding="0" width="320" align="center">
	<tr align="center">
		<td width="33%"><a href="http://www.volcano.si.edu/world/volcano.cfm?vnum=0103-04-">Smithsonian Volcano Information</a></td>
	</tr>
	</table>]]></description>

content value

"<table border="0" cellspacing="3" width="320" align="center">
	<tr align="left"><td colspan="2"><a href="http://www.volcano.si.edu/"><img src="http://www.volcano.si.edu/ge/gvplogo.png" width="172" height="32" /></a></td></tr>
	<tr align="center"><td colspan="2"><hr /><font size="6"><b>Ararat</b></font><br /><font size="5"><b>Eastern Turkey</b></font></td></tr>
	<tr align="center"><td colspan="2"><img src = "http://www.volcano.si.edu/Photos/small/111001.jpg"></td></tr>
	<tr align="justify">
		<td width="50%" align="left"><b>Volcano types:</b><br />
			&nbsp;&nbsp;&nbsp; Stratovolcano<br />&nbsp;&nbsp;&nbsp; Pyroclastic cones
		</td>
		<td width="50%" align="left">
			<b>Summit Elev:</b> 5165 m<br />
			<b>Latitude:</b> 39.70&deg;N<br />
			<b>Longitude:</b> 44.30&deg;E
		</td>
	</tr>
	<tr><td colspan="2"><p align="justify">The 5165-m-high, double-peaked stratovolcano Mount Ararat, also known as Agri Dagi, is Turkey's highest, largest volume, and easternmost volcano.  Glacier-clad Ararat, along with its twin volcano, 3925-m-high Kucuk Ararat (or Lesser Ararat), covers an area of 1000 sq km at the eastern end of a SSW-ESE line of volcanoes extending from Nemrut Dagi.  Construction of the Greater and Lesser Ararat volcanoes was followed by a period of extensive flank eruptions, many erupted along N-S-trending fissures.  The initial stage of flank eruptions produced a cluster of cinder cones and dacitic-rhyolitic lava domes surrounding Greater Ararat and a series of pyroclastic cones and domes on the western flank of Lesser Ararat.  Late-stage activity formed large pyroclastic cones lower on the flanks of the two volcanoes.  Ararat appears to have been active during the 3rd millennium BC; pyroclastic-flow deposits overlie early Bronze Age artifacts and human remains.   Karakhanian et al. (2002) reported historical evidence for a phreatic eruption and pyroclastic flow at the time of a July 1840 earthquake and landslide.</p></td></tr>
	<tr><td colspan="2"><p align="right"><i><a href="http://www.volcano.si.edu/world/volcano.cfm?vnum=0103-04-&amp;volpage=photos&amp;photo=111001">Larger photo with caption and credit.</a></i></p></td></tr>
	<tr height="6"><td colspan="2"><hr /></td></tr>
	</table>
	<table border="0" cellspacing="0" cellpadding="0" width="320" align="center">
	<tr align="center">
		<td width="33%"><a href="http://www.volcano.si.edu/world/volcano.cfm?vnum=0103-04-">Smithsonian Volcano Information</a></td>
		
		
	</tr>
	</table>"
0 Kudos
0 Replies