Changeset 7775 for trunk/src/inc/KMLNode.class.php
- Timestamp:
- Apr 16, 2010, 12:27:16 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/inc/KMLNode.class.php
r7765 r7775 6 6 */ 7 7 8 define('NODE_GREEN', ' greenArrowIcon');9 define('NODE_ORANGE', ' orangeArrowIcon');10 define('NODE_RED', ' redArrowIcon');8 define('NODE_GREEN', '#greenArrowIcon'); 9 define('NODE_ORANGE', '#orangeArrowIcon'); 10 define('NODE_RED', '#redArrowIcon'); 11 11 12 12 class KMLNode { … … 14 14 <Placemark id="%ID%"> 15 15 <name>%NAME%</name> 16 <description> 17 <![CDATA[ 18 <img src="http://www.wirelessleiden.nl/sites/wirelessleiden.nl/files/garland-wl_logo.png" alt="Wireless Leiden" title="Wireless Leiden" style="float: right;"/> 19 %DESCRIPTION% 20 ]]> 21 </description> 16 <description>%NAME%</description> 22 17 <LookAt> 23 18 <longitude>%LONGITUDE%</longitude> 24 19 <latitude>%LATITUDE%</latitude> 25 <altitude> 0</altitude>26 <heading> 0</heading>27 <tilt> 0</tilt>28 <range> 500</range>20 <altitude>%OVERALL_ALTITUDE%</altitude> 21 <heading>%OVERALL_HEADING%</heading> 22 <tilt>%OVERALL_TILT%</tilt> 23 <range>%OVERALL_RANGE%</range> 29 24 </LookAt> 25 <ExtendedData> 26 %EXTENDEDDATA% 27 </ExtendedData> 30 28 <styleUrl>%STYLE%</styleUrl> 31 29 <Point> … … 35 33 </Placemark>'; 36 34 37 private $id; 38 private $name; 39 private $d escriptionLocation;// Location information of the node40 private $d escriptionStatus; // Status information of the node41 private $longitude; 42 private $latitude; 43 private $style; 35 private $id; // ID of the node 36 private $name; // Name of the node 37 private $dataLocation; // Location information of the node 38 private $dataStatus; // Status information of the node 39 private $longitude; // Longitude of the node 40 private $latitude; // Latitude of the node 41 private $style; // Style of the node 44 42 45 43 /* … … 52 50 $this->id = ''; 53 51 $this->name = ''; 54 $this->d escriptionLocation = '';55 $this->d escriptionStatus = '';52 $this->dataLocation = ''; 53 $this->dataStatus = ''; 56 54 $this->longitude = 0; 57 55 $this->latitude = 0; 58 $this->style = 'orangeArrowIcon';56 $this->style = NODE_RED; 59 57 } 60 58 … … 95 93 * Returns: - 96 94 */ 97 function setD escriptionLocation($newDescriptionLocation) {98 $this->d escriptionLocation = (string) $newDescriptionLocation;95 function setDataLocation($newDataLocation) { 96 $this->dataLocation = (string) $newDataLocation; 99 97 } 100 98 … … 105 103 * Returns: - 106 104 */ 107 function setD escriptionStatus($newDescriptionStatus) {108 $this->d escriptionStatus = (string) $newDescriptionStatus;105 function setDataStatus($newDataStatus) { 106 $this->dataStatus = (string) $newDataStatus; 109 107 } 110 108 … … 150 148 $toString = str_replace('%ID%', $this->id, $toString); 151 149 $toString = str_replace('%NAME%', $this->name, $toString); 152 $toString = str_replace('% DESCRIPTION%', $this->descriptionLocation . $this->descriptionStatus, $toString);150 $toString = str_replace('%EXTENDEDDATA%', $this->dataLocation . $this->dataStatus, $toString); 153 151 $toString = str_replace('%LONGITUDE%', $this->longitude, $toString); 154 152 $toString = str_replace('%LATITUDE%', $this->latitude, $toString);
Note:
See TracChangeset
for help on using the changeset viewer.