Ignore:
Timestamp:
Apr 16, 2010, 10:55:40 AM (16 years ago)
Author:
janveeden
Message:

Edited location of the kml file in config. kmlHandler.php now also gets the data from <data> tags in kml. the markerArray still has to be filled with data. Demo is on map showing name and location. Text size etc still has to fixed.

File:
1 edited

Legend:

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

    r7782 r7784  
    22require_once("../../config.php");
    33require_once($config['root']."/map/inc/kmlHandler.php");
    4 
    54if(isset($_GET['view']))
    65{
     
    4544elseif($_GET['type'] == "single") //Info for single nodes is stored here
    4645{
    47 $markers = get_node_array($config['root']."/map/inc/example.kml");
     46$markers = get_node_array($config['kml_file']);
    4847
    49 printf($markers[5]['description']);
     48$description;
     49
     50foreach($markers as $marker)
     51{
     52        if($marker['name'] == $_GET['name'])
     53        {
     54                $name = $marker['name'];
     55                $location = $marker['location'];
     56        }
     57}
    5058
    5159        if($view == "beheerder")//Display part for beheerder view of a single node
    52         {
     60        {       
    5361                echo <<<EOF
    54                 <div id="nodeinfo">
    55                        
     62                <div id='nodeinfo'>
     63                {$name}<br/>
     64                Locatie: {$location}
    5665                </div>
    5766                <div id="timestamp">
Note: See TracChangeset for help on using the changeset viewer.