Ignore:
Timestamp:
Apr 15, 2010, 12:00:44 PM (15 years ago)
Author:
Pieter Naber
Message:

Fixed loghandler so index.php outputs a KML valid file. Also added the possibility to add lines.

File:
1 moved

Legend:

Unmodified
Added
Removed
  • trunk/src/inc/KMLNode.class.php

    r7764 r7765  
    22/*
    33 * Project: NodeMap2.0
    4  * File: KMLPlacemark.class.php
    5  * Purpose: Placemark used in KMLFile
     4 * File: KMLNode.class.php
     5 * Purpose: Node placemark used in KMLFile
    66 */
    77
    8 define('PLACEMARK_GREEN', 'greenArrowIcon');
    9 define('PLACEMARK_ORANGE', 'orangeArrowIcon');
    10 define('PLACEMARK_RED', 'redArrowIcon');
     8define('NODE_GREEN', 'greenArrowIcon');
     9define('NODE_ORANGE', 'orangeArrowIcon');
     10define('NODE_RED', 'redArrowIcon');
    1111
    12 class KMLPlacemark {
     12class KMLNode {
    1313        private $template = '
    1414                <Placemark id="%ID%">
     
    4141        private $longitude;                             // Longitude of the node
    4242        private $latitude;                              // Latitude of the node
    43         private $style;                                 // Style of the placemark
     43        private $style;                                 // Style of the node
    4444
    4545        /*
    4646         * Function: __construct (constructor)
    47          * Description: Creating a new KMLFile
     47         * Description: Creating a new KMLNode
    4848         * Parameters: -
    4949         * Returns: -
     
    6161        /*
    6262         * Function: setID
    63          * Description: Setting the ID of the placemark
     63         * Description: Setting the ID of the node
    6464         * Parameters: string $newID
    6565         * Returns: -
     
    7171        /*
    7272         * Function: setName
    73          * Description: Setting the name of the placemark
     73         * Description: Setting the name of the node
    7474         * Parameters: string $newName
    7575         * Returns: -
     
    8181        /*
    8282         * Function: getName
    83          * Description: Getting the name of the placemark
     83         * Description: Getting the name of the node
    8484         * Parameters: -
    85          * Returns: The name of the placemark
     85         * Returns: The name of the node
    8686         */
    8787        function getName() {
     
    9191        /*
    9292         * Function: setDescriptionLocation
    93          * Description: Setting the location description of the placemark
     93         * Description: Setting the location description of the node
    9494         * Parameters: string $newDescriptionLocation
    9595         * Returns: -
     
    101101        /*
    102102         * Function: setDescriptionStatus
    103          * Description: Setting the status description of the placemark
     103         * Description: Setting the status description of the node
    104104         * Parameters: string $newDescriptionStatus
    105105         * Returns: -
     
    111111        /*
    112112         * Function: setLongitude
    113          * Description: Setting the longitude of the placemark
     113         * Description: Setting the longitude of the node
    114114         * Parameters: string $newLongitude
    115115         * Returns: -
     
    121121        /*
    122122         * Function: setLatitude
    123          * Description: Setting the latitude of the placemark
     123         * Description: Setting the latitude of the node
    124124         * Parameters: string $newLatitude
    125125         * Returns: -
     
    131131        /*
    132132         * Function: setStyle
    133          * Description: Setting the style of the placemark
     133         * Description: Setting the style of the node
    134134         * Parameters: string $newStyle
    135135         * Returns: -
     
    141141        /*
    142142         * Function: toString
    143          * Description: Converts the content of this placemark to a KML valid string
     143         * Description: Converts the content of this node to a KML valid string
    144144         * Parameters: -
    145145         * Returns: KML valid string
Note: See TracChangeset for help on using the changeset viewer.