Google maps Simple Map Marker

based on http://jsfiddle.net/Shreerang/6VWuT/

by Alexandru Mihai

HTML

<html>
<head>
<title>Google Maps API v3 - Simple marker example
</title>
<script type="text/javascript" src="http://maps.google.com/maps/api/js?sensor=false">
</script>
<script type="text/javascript">
<!--Insert the Javascript below here in case you want to try this code.-->
</script>
</head>
<body>
<div id="map" style="width: 500px; height: 300px">

</div>
</body>
</html>

JavaScript

var map;
function initialize()
{
    var myLatLng = new google.maps.LatLng(28.617161,77.208111);
     map = new google.maps.Map(document.getElementById("map"),
    {
        zoom: 2,
        center: new google.maps.LatLng(0,0),
        mapTypeId: google.maps.MapTypeId.ROADMAP
    });

    var marker = new google.maps.Marker(
    {
        position: myLatLng,
        map: map,
        title: 'Rajya Sabha'
    });
    

}
initialize();