Changeset 7769 for trunk/src/map/inc/kmlHandler.php
- Timestamp:
- Apr 15, 2010, 6:14:05 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/map/inc/kmlHandler.php
r7767 r7769 1 1 <?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 3 function get_node_array($file) 5 4 { 6 global $config;7 $file = $config['kml_file'];8 9 5 //Check if the file exists, if it does we load it. If it doesn't we exit and return an error message 10 6 if (file_exists($file)) … … 14 10 else 15 11 { 16 trigger_log(SYSLOG_CRIT, "Failed to open KML file $file", __FILE__, __LINE__);12 exit('Failed to open example.xml.'); 17 13 } 18 14 … … 24 20 { 25 21 26 $markers[ (string)$placemark->name] = array( "latitude"=>$placemark->LookAt->latitude,22 $markers[] = array( "latitude"=>$placemark->LookAt->latitude, 27 23 "longitude"=>$placemark->LookAt->longitude, 28 24 "name"=>$placemark->name,
Note:
See TracChangeset
for help on using the changeset viewer.