Ignore:
Timestamp:
Apr 15, 2010, 6:14:05 PM (15 years ago)
Author:
janveeden
Message:

Fixed map to work again (went back a revision). Next up is config to work again. (Backed-up broken map).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/map/inc/kmlHandler.php

    r7767 r7769  
    11<?php
    2 require_once($config['root']."/inc/LogHandler.class.php");
    3 
    4 function getArrayFromKML()
     2//$file contains place of the KML file we will be getting our node information from
     3function get_node_array($file)
    54{
    6 global $config;
    7 $file = $config['kml_file'];
    8 
    95        //Check if the file exists, if it does we load it. If it doesn't we exit and return an error message
    106        if (file_exists($file))
     
    1410        else
    1511        {
    16                 trigger_log(SYSLOG_CRIT, "Failed to open KML file $file", __FILE__, __LINE__);
     12                exit('Failed to open example.xml.');
    1713        }
    1814
     
    2420        {
    2521               
    26                 $markers[(string)$placemark->name] = array(     "latitude"=>$placemark->LookAt->latitude,
     22                $markers[] = array(     "latitude"=>$placemark->LookAt->latitude,
    2723                                                        "longitude"=>$placemark->LookAt->longitude,
    2824                                                        "name"=>$placemark->name,
Note: See TracChangeset for help on using the changeset viewer.