PHP Classes

File: example2.php

Recommend this page to a friend!
  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: 17 years ago
Size: 578 bytes


Class file image Download
require "nxgooglemapsapi.php";

$api = new NXGoogleMapsAPI();

// setup the visual design of the control

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


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


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

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

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