[OpenLayers-Users] KML

francescoboccacci at libero.it francescoboccacci at libero.it
Mon Jun 25 13:02:06 PDT 2012


Hi all,
i have a question about how load a kml file into OpenLayers.
I have a kmz file (file kml + photo). I extract it and i tried to load the kml 
file into my test web page. I can see only a <LineString> but not all the 
photos and marker:

<Placemark>
			<styleUrl>#MarkerPhotoStyle</styleUrl>
			<name>Test</name>
			<description>
				<![CDATA[
				<div xmlns="http://www.opengis.net/kml/2.2" ALIGN=center>
				
					<table style="width: 320px; margin: 6px 0" border="0">
						<tr>
							<td><img src="test.jpg" style="width: 320px" /></td>
						</tr>
						<tr>
							<td ALIGN=center><b></b> </td>
						</tr>
					</table>
						</div>]]>
			</description>
			<Point>
				<coordinates>-74.1, 40.1, 0
</coordinates>
			</Point>
		</Placemark>


Is there a way to load both photos and track?

Thanks

Francesco


More information about the Users mailing list