Changeset 7628 for trunk/src/index.php


Ignore:
Timestamp:
Mar 30, 2010, 9:27:00 AM (15 years ago)
Author:
Pieter Naber
Message:

Added some contraints, created a index file for a simple test.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • TabularUnified trunk/src/index.php

    r7627 r7628  
    1010require_once('class/FileHandler.class.php');
    1111require_once('class/KMLFile.class.php');
     12require_once('class/KMLPlacemark.class.php');
     13
     14$kmlPlacemark = new KMLPlacemark();
     15$kmlPlacemark->setName('Test name');
     16$kmlPlacemark->setDescription('Test description');
     17$kmlPlacemark->setXCoordinate(52.138476);
     18$kmlPlacemark->setYCoordinate(4.463046);
    1219
    1320$kml = new KMLFile();
    14 
     21$kml->addPlacemark($kmlPlacemark);
     22echo $kml->toString();
    1523?>
Note: See TracChangeset for help on using the changeset viewer.