Changeset 7765 for trunk/src/inc/KMLNode.class.php
- Timestamp:
- Apr 15, 2010, 12:00:44 PM (15 years ago)
- File:
-
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/inc/KMLNode.class.php
r7764 r7765 2 2 /* 3 3 * Project: NodeMap2.0 4 * File: KML Placemark.class.php5 * Purpose: Placemark used in KMLFile4 * File: KMLNode.class.php 5 * Purpose: Node placemark used in KMLFile 6 6 */ 7 7 8 define(' PLACEMARK_GREEN', 'greenArrowIcon');9 define(' PLACEMARK_ORANGE', 'orangeArrowIcon');10 define(' PLACEMARK_RED', 'redArrowIcon');8 define('NODE_GREEN', 'greenArrowIcon'); 9 define('NODE_ORANGE', 'orangeArrowIcon'); 10 define('NODE_RED', 'redArrowIcon'); 11 11 12 class KML Placemark{12 class KMLNode { 13 13 private $template = ' 14 14 <Placemark id="%ID%"> … … 41 41 private $longitude; // Longitude of the node 42 42 private $latitude; // Latitude of the node 43 private $style; // Style of the placemark43 private $style; // Style of the node 44 44 45 45 /* 46 46 * Function: __construct (constructor) 47 * Description: Creating a new KML File47 * Description: Creating a new KMLNode 48 48 * Parameters: - 49 49 * Returns: - … … 61 61 /* 62 62 * Function: setID 63 * Description: Setting the ID of the placemark63 * Description: Setting the ID of the node 64 64 * Parameters: string $newID 65 65 * Returns: - … … 71 71 /* 72 72 * Function: setName 73 * Description: Setting the name of the placemark73 * Description: Setting the name of the node 74 74 * Parameters: string $newName 75 75 * Returns: - … … 81 81 /* 82 82 * Function: getName 83 * Description: Getting the name of the placemark83 * Description: Getting the name of the node 84 84 * Parameters: - 85 * Returns: The name of the placemark85 * Returns: The name of the node 86 86 */ 87 87 function getName() { … … 91 91 /* 92 92 * Function: setDescriptionLocation 93 * Description: Setting the location description of the placemark93 * Description: Setting the location description of the node 94 94 * Parameters: string $newDescriptionLocation 95 95 * Returns: - … … 101 101 /* 102 102 * Function: setDescriptionStatus 103 * Description: Setting the status description of the placemark103 * Description: Setting the status description of the node 104 104 * Parameters: string $newDescriptionStatus 105 105 * Returns: - … … 111 111 /* 112 112 * Function: setLongitude 113 * Description: Setting the longitude of the placemark113 * Description: Setting the longitude of the node 114 114 * Parameters: string $newLongitude 115 115 * Returns: - … … 121 121 /* 122 122 * Function: setLatitude 123 * Description: Setting the latitude of the placemark123 * Description: Setting the latitude of the node 124 124 * Parameters: string $newLatitude 125 125 * Returns: - … … 131 131 /* 132 132 * Function: setStyle 133 * Description: Setting the style of the placemark133 * Description: Setting the style of the node 134 134 * Parameters: string $newStyle 135 135 * Returns: - … … 141 141 /* 142 142 * Function: toString 143 * Description: Converts the content of this placemarkto a KML valid string143 * Description: Converts the content of this node to a KML valid string 144 144 * Parameters: - 145 145 * Returns: KML valid string
Note:
See TracChangeset
for help on using the changeset viewer.