Login   Register  
PHP Classes
elePHPant
Icontem

File: example2.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of Sven Weih  >  N/X API to Google Maps  >  example2.php  >  Download  
File: example2.php
Role: Example script
Content type: text/plain
Description: Example script
Class: N/X API to Google Maps
Present world maps with Google Maps API
Author: By
Last change:
Date: 2006-09-05 13:00
Size: 578 bytes
 

Contents

Class file image Download
<html>
<?php
require "nxgooglemapsapi.php";


$api = new NXGoogleMapsAPI();

// setup the visual design of the control
$api->setWidth(800);
$api->setHeight(600);
$api->setZoomFactor(5);
$api->addControl(GSmallMapControl);

// add a point. 
$api->addGeoPoint(50,10"Somewhere in Germany"false);
// center to a point
$api->setCenter(51,11);


?>
<head>

<?php echo $api->getHeadCode(); ?>

</head>

<body onLoad="<?php echo $api->getOnLoadCode(); ?>">

<h1> Adding Geopoints to the map </h1>

<?php echo $api->getBodyCode(); ?>

</body>
</html>