Changeset 7775 for trunk/src/inc/KMLLine.class.php
- Timestamp:
- Apr 16, 2010, 12:27:16 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/inc/KMLLine.class.php
r7773 r7775 6 6 */ 7 7 8 define('LINE_BLACK', ' blackLine');8 define('LINE_BLACK', '#blackLine'); 9 9 10 10 class KMLLine { … … 12 12 <Placemark id="%ID%"> 13 13 <name>%NAME%</name> 14 <description> 15 <![CDATA[ 16 <img src="http://www.wirelessleiden.nl/sites/wirelessleiden.nl/files/garland-wl_logo.png" alt="Wireless Leiden" title="Wireless Leiden" style="float: right;"/> 17 %DESCRIPTION% 18 ]]> 19 </description> 14 <description>%NAME%</description> 20 15 <LookAt> 21 16 <longitude>%LONGITUDE1%</longitude> 22 17 <latitude>%LATITUDE1%</latitude> 23 <altitude> 0</altitude>24 <heading> 0</heading>25 <tilt> 0</tilt>26 <range> 500</range>18 <altitude>%OVERALL_ALTITUDE%</altitude> 19 <heading>%OVERALL_HEADING%</heading> 20 <tilt>%OVERALL_TILT%</tilt> 21 <range>%OVERALL_RANGE%</range> 27 22 </LookAt> 23 <ExtendedData> 24 %EXTENDEDDATA% 25 </ExtendedData> 28 26 <styleUrl>%STYLE%</styleUrl> 29 27 <LineString> 30 28 <coordinates> 31 %LONGITUDE1%, %LATITUDE1%,0.32 %LONGITUDE2%, %LATITUDE2%,0.29 %LONGITUDE1%,%LATITUDE1%,0. 30 %LONGITUDE2%,%LATITUDE2%,0. 33 31 </coordinates> 34 32 </LineString> … … 37 35 private $id; // ID of the line 38 36 private $name; // Name of the line 39 private $d escription; // Description of the line37 private $data; // Extra information of the line 40 38 private $style; // Style of the line 41 39 private $longitude1; // Start longitude of line … … 94 92 95 93 /* 96 * Function: setD escription97 * Description: Setting the descriptionof the placemark98 * Parameters: string $newD escription94 * Function: setData 95 * Description: Setting the extra data of the placemark 96 * Parameters: string $newData 99 97 * Returns: - 100 98 */ 101 function setD escription($newDescription) {102 $this->d escription = (string) $newDescription;99 function setData($newData) { 100 $this->data = (string) $newData; 103 101 } 104 102 … … 179 177 $toString = str_replace('%ID%', $this->id, $toString); 180 178 $toString = str_replace('%NAME%', $this->name, $toString); 181 $toString = str_replace('% DESCRIPTION%', $this->description, $toString);179 $toString = str_replace('%EXTENDEDDATA%', $this->data, $toString); 182 180 $toString = str_replace('%STYLE%', $this->style, $toString); 183 181 $toString = str_replace('%LONGITUDE1%', $this->longitude1, $toString);
Note:
See TracChangeset
for help on using the changeset viewer.