Discussion:Atlas 380 - h1000

De dieudo.fr
Révision datée du 24 décembre 2011 à 12:13 par Dieudo (discussion | contributions) (→‎Exemple de codage KML d'un point : Alger avec Icône de Google Earth)
Aller à la navigation Aller à la recherche

Exemple de codage KML d'un point

<?xml version="1.0" encoding="UTF-8"?>
<kml xmlns="http://www.opengis.net/kml/2.2" xmlns:gx="http://www.google.com/kml/ext/2.2" xmlns:kml="http://www.opengis.net/kml/2.2" xmlns:atom="http://www.w3.org/2005/Atom">
<Document>
	<name>Alger.kml</name>
	<Style id="sn_red-circle">
		<IconStyle>
			<scale>1.1</scale>
			<Icon>
				<href>http://maps.google.com/mapfiles/kml/paddle/red-circle.png</href>
			</Icon>
			<hotSpot x="32" y="1" xunits="pixels" yunits="pixels"/>
		</IconStyle>
		<BalloonStyle>
			<text>$[description]</text>
		</BalloonStyle>
		<ListStyle>
			<ItemIcon>
				<href>http://maps.google.com/mapfiles/kml/paddle/red-circle-lv.png</href>
			</ItemIcon>
		</ListStyle>
		<LineStyle>
			<color>ffff00ff</color>
			<width>2</width>
		</LineStyle>
		<PolyStyle>
			<color>01ff00ff</color>
			<fill>0</fill>
		</PolyStyle>
	</Style>
	<StyleMap id="msn_red-circle">
		<Pair>
			<key>normal</key>
			<styleUrl>#sn_red-circle</styleUrl>
		</Pair>
		<Pair>
			<key>highlight</key>
			<styleUrl>#sh_red-circle</styleUrl>
		</Pair>
	</StyleMap>
	<Style id="sh_red-circle">
		<IconStyle>
			<scale>1.3</scale>
			<Icon>
				<href>http://maps.google.com/mapfiles/kml/paddle/red-circle.png</href>
			</Icon>
			<hotSpot x="32" y="1" xunits="pixels" yunits="pixels"/>
		</IconStyle>
		<LabelStyle>
			<scale>1.1</scale>
		</LabelStyle>
		<BalloonStyle>
			<text>$[description]</text>
		</BalloonStyle>
		<ListStyle>
			<ItemIcon>
				<href>http://maps.google.com/mapfiles/kml/paddle/red-circle-lv.png</href>
			</ItemIcon>
		</ListStyle>
		<LineStyle>
			<color>ffff00ff</color>
			<width>3</width>
		</LineStyle>
		<PolyStyle>
			<color>70ff00ff</color>
			<fill>0</fill>
		</PolyStyle>
	</Style>
	<Placemark>
		<name>Alger</name>
		<Snippet maxLines="0"></Snippet>
		<description>Alger 	DAAG	ALG	4114	Destination + A380</description>
		<LookAt>
			<longitude>3.21666666666667</longitude>
			<latitude>36.7</latitude>
			<altitude>0</altitude>
			<heading>0</heading>
			<tilt>0</tilt>
			<range>1000</range>
			<altitudeMode>relativeToGround</altitudeMode>
		</LookAt>
		<styleUrl>#msn_red-circle</styleUrl>
		<ExtendedData>
		</ExtendedData>
		<Point>
			<coordinates>3.21666666666667,36.7,0</coordinates>
		</Point>
	</Placemark>
</Document>
</kml>