Login   Register  
PHP Classes
elePHPant
Icontem

File: demo-streetviews.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of Philipp Kiszka  >  Gmapper  >  demo-streetviews.php  >  Download  
File: demo-streetviews.php
Role: Example script
Content type: text/plain
Description: Streetview demo
Class: Gmapper
Present world maps with Google Maps API
Author: By
Last change:
Date: 2008-04-05 18:01
Size: 1,091 bytes
 

Contents

Class file image Download
<?php
include("class.gmapper.php");
error_reporting(E_ALL);
// Neue Instanz der Klasse erzeugen
$key "ABQIAAAAmROoCZGDkxmdzlZMYeLCBRQesH-OtPH9W6RRY-OXCBa7C5S6exSMgJyFEkOXyPxq-mhw-VppjVttdA";
$karte = new gmap($key);
?>
<html xmlns:v="urn:schemas-microsoft-com:vml">
<head>
<?php
$karte
->headjs();
?>
</head>
<body onunload="GUnload()">
<div style="background-color:#666666;color:#FF0000;" align = "center">
<?php
/*
* Wir geben das HTML Element für die Karte aus. Hier wird die Karte später angezeigt.
*/
$karte->mapdiv(400600);
?>
<br />
<?php
$karte
->streetviewDiv(400,600 );
?>

</div>
<?php
/*
* LETZTES BLOCKELEMENT
*Wir erzeugen eine neue Karte.
*Benötigte Parameter: initiale Zoomstufe,Breitengrad,Längengrad
*/

$karte->bodyjs();

$karte->map(13'42.345573''-71.098326'"normal"120"large"0);
$punkt  $karte->getGeoPoint("Madrid");
// Wir fügen einige Marker hinzu
$karte->markstart();
$karte->showPhysicalControl();
//$karte->streetviewOverlay();
$karte->clickStreetview();

$karte->markend();


?>

</body>
</html>