Différences entre les versions de « Discussion:Atlas 380 - h1000 »
Aller à la navigation
Aller à la recherche
(Page créée avec « == Exemple de codage KML d'un point == <pre> <?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.... ») |
(→Exemple de codage KML d'un point : Alger avec Icône de Google Earth) |
||
Ligne 5 : | Ligne 5 : | ||
<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"> | <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> | <Document> | ||
<name> | <name>Alger.kml</name> | ||
<Style id=" | <Style id="sn_red-circle"> | ||
<IconStyle> | <IconStyle> | ||
<scale>1.1</scale> | |||
<Icon> | <Icon> | ||
<href>http:// | <href>http://maps.google.com/mapfiles/kml/paddle/red-circle.png</href> | ||
</Icon> | </Icon> | ||
<hotSpot x="32" y="1" xunits="pixels" yunits="pixels"/> | |||
</IconStyle> | </IconStyle> | ||
<BalloonStyle> | <BalloonStyle> | ||
<text>$[description]</text> | <text>$[description]</text> | ||
</BalloonStyle> | </BalloonStyle> | ||
<ListStyle> | |||
<ItemIcon> | |||
<href>http://maps.google.com/mapfiles/kml/paddle/red-circle-lv.png</href> | |||
</ItemIcon> | |||
</ListStyle> | |||
<LineStyle> | <LineStyle> | ||
<color>ffff00ff</color> | <color>ffff00ff</color> | ||
Ligne 24 : | Ligne 31 : | ||
</PolyStyle> | </PolyStyle> | ||
</Style> | </Style> | ||
<StyleMap id=" | <StyleMap id="msn_red-circle"> | ||
<Pair> | <Pair> | ||
<key>normal</key> | <key>normal</key> | ||
<styleUrl># | <styleUrl>#sn_red-circle</styleUrl> | ||
</Pair> | </Pair> | ||
<Pair> | <Pair> | ||
<key>highlight</key> | <key>highlight</key> | ||
<styleUrl># | <styleUrl>#sh_red-circle</styleUrl> | ||
</Pair> | </Pair> | ||
</StyleMap> | </StyleMap> | ||
<Style id=" | <Style id="sh_red-circle"> | ||
<IconStyle> | <IconStyle> | ||
<scale>1. | <scale>1.3</scale> | ||
<Icon> | <Icon> | ||
<href>http:// | <href>http://maps.google.com/mapfiles/kml/paddle/red-circle.png</href> | ||
</Icon> | </Icon> | ||
<hotSpot x="32" y="1" xunits="pixels" yunits="pixels"/> | |||
</IconStyle> | </IconStyle> | ||
<LabelStyle> | <LabelStyle> | ||
Ligne 47 : | Ligne 55 : | ||
<text>$[description]</text> | <text>$[description]</text> | ||
</BalloonStyle> | </BalloonStyle> | ||
<ListStyle> | |||
<ItemIcon> | |||
<href>http://maps.google.com/mapfiles/kml/paddle/red-circle-lv.png</href> | |||
</ItemIcon> | |||
</ListStyle> | |||
<LineStyle> | <LineStyle> | ||
<color>ffff00ff</color> | <color>ffff00ff</color> | ||
Ligne 57 : | Ligne 70 : | ||
</Style> | </Style> | ||
<Placemark> | <Placemark> | ||
<name> | <name>Alger</name> | ||
<Snippet maxLines="0"></Snippet> | <Snippet maxLines="0"></Snippet> | ||
<description> | <description>Alger DAAG ALG 4114 Destination + A380</description> | ||
<LookAt> | <LookAt> | ||
<longitude> | <longitude>3.21666666666667</longitude> | ||
<latitude> | <latitude>36.7</latitude> | ||
<altitude>0</altitude> | <altitude>0</altitude> | ||
<heading>0</heading> | <heading>0</heading> | ||
Ligne 69 : | Ligne 82 : | ||
<altitudeMode>relativeToGround</altitudeMode> | <altitudeMode>relativeToGround</altitudeMode> | ||
</LookAt> | </LookAt> | ||
<styleUrl># | <styleUrl>#msn_red-circle</styleUrl> | ||
<ExtendedData> | <ExtendedData> | ||
</ExtendedData> | </ExtendedData> | ||
<Point> | <Point> | ||
<coordinates> | <coordinates>3.21666666666667,36.7,0</coordinates> | ||
</Point> | </Point> | ||
</Placemark> | </Placemark> |
Version du 24 décembre 2011 à 12:13
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>