Location: PHPKode > scripts > Google map > markerexample.php
<?php
include_once('googlemap.php');

?>
<html>
<body>
<div id="map" style="width:400px; height:400px;" >
<?php
$map=new GOOGLE_API_3();
$map->center_lat='28.022900221052016'; // set latitude for center location
$map->center_lng='73.3011245727539'; // set langitude for center location
$map->zoom=14;

//marker information

// marker 1
$lat='28.022900221052016'; // latitude
$lng='73.3011245727539'; // longitude
$isclickable='true';
$title="This great way to add marker";
$info="<b>Thanks <blink>User</blink>, enjoy this great way to add info. if would like to get my professional service.contact me via my profile.</b>";
$map->addMarker($lat,$lng,$isclickable,$title,$info);


// marker 2
$lat='28.011100221052016'; // latitude
$lng='73.3011245727539'; // longitude
$isclickable='true';
$title="This great way to add marker";
$info="<b>This is example of custom icon for the marker.  <blink>User</blink>, enjoy this great way to add custom icon. if would like to get my professional service.contact me via my profile.</b>";
$icon='airplane-sport.png';
$map->addMarker($lat,$lng,$isclickable,$title,$info,$icon);

echo $map->showmap();
?>
</div>
</body>
</html>
Return current item: Google map