<?
if($_GET['showsource']) { highlight_file($_SERVER['SCRIPT_FILENAME']); die; }

include(
"inc/phoogle2.php");

//
// create custom icons
//
$gv = new Icon("gv_custom_icon","https://www.barattalo.it/images/gv.png","https://www.barattalo.it/images/gvshadow.png",20,34,38,34);
$ro =  new Icon("rockit_custom_icon","https://www.barattalo.it/images/rockit.png","https://www.barattalo.it/images/rockitshadow.png",34,34,52,34,0,0,25,10);

//
// create map
//
$map = new PhoogleMap();
$map->setAPIKey("ABQIAAAALXuOrKOXgzpbb5RniJMjkxSkbZ_Cv4T3ZGrIwFm5jiLGR-JiCxQpiEcKbz4VakaGtXMBPfsaOmNL5A");
$map->setHeight(550);
$map->setWidth(650);
$map->zoomLevel=5;
$map->useClusterer2=true;
$map->centerMap();
$c=0;
while(
$c<2000) {
    
$lat rand(45,46)+rand(0,100)/100;
    
$long rand(8,10)+rand(0,100)/100;;
    
$map->addGeoPoint($c,$lat,$long,"id = $c; ($lat;$long)",$c 2==0?"gv_custom_icon":"rockit_custom_icon");
    
$c++;
}
//
// add icons to map object
//
$map->arIcons[0]=$gv;
$map->arIcons[1]=$ro;

?><html>
<head>
<? $map->printGoogleJS(); ?>
<script src="js/Clusterer2.js" type="text/javascript"></script>
</head>
<body>
<?$map->showMap();?>
</body>
</html>