Changeset 7692 for trunk/src/inc/KMLPlacemark.class.php
- Timestamp:
- Apr 7, 2010, 12:24:40 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/inc/KMLPlacemark.class.php
r7661 r7692 8 8 class KMLPlacemark { 9 9 private $template = ' 10 <Placemark >10 <Placemark id="%ID%"> 11 11 <name>%NAME%</name> 12 <visibility>0</visibility> 13 <description>%DESCRIPTION%</description> 12 <description> 13 <![CDATA[ 14 <img src="http://www.wirelessleiden.nl/sites/wirelessleiden.nl/files/garland-wl_logo.png" alt="Wireless Leiden" title="Wireless Leiden" style="float: right;"/> 15 %DESCRIPTION% 16 ]]> 17 </description> 14 18 <LookAt> 15 19 <longitude>%LONGITUDE%</longitude> … … 27 31 </Placemark>'; 28 32 33 private $id; // ID of the node 29 34 private $name; // Name of the node 30 35 private $descriptionLocation; // Location information of the node … … 40 45 */ 41 46 function __construct() { 47 $this->id = ''; 42 48 $this->name = ''; 43 49 $this->descriptionLocation = ''; … … 46 52 $this->latitude = 0; 47 53 $this->style = 'orangeArrowIcon'; 54 } 55 56 function setID($newID) { 57 $this->id = $newID; 48 58 } 49 59 … … 79 89 $toString = $this->template; 80 90 91 $toString = str_replace('%ID%', $this->id, $toString); 81 92 $toString = str_replace('%NAME%', $this->name, $toString); 82 93 $toString = str_replace('%DESCRIPTION%', $this->descriptionLocation . $this->descriptionStatus, $toString);
Note:
See TracChangeset
for help on using the changeset viewer.