use this function
<script type="text/javascript" language="javascript">
function showMap(lat, lng,div) {
var latlng = new google.maps.LatLng(lat, lng);
var mapOptions = {
zoom: 15,
maxZoom: 20,
minZoom: 1,
scrollwheel: 0,
center: latlng,
panControl: true,
panControlOptions: {position: google.maps.ControlPosition.LEFT_BOTTOM},
streetViewControl: true,
zoomControlOptions: {style: google.maps.ZoomControlStyle.LARGE},
mapTypeId: google.maps.MapTypeId.ROADMAP
};
var map = new google.maps.Map(document.getElementById(div), mapOptions);
map.setCenter(latlng);
var marker = new google.maps.Marker({
map: map,
position: latlng,
draggable: false,
title: 'Your title here'
});
}
</script>
and now where you have to call the methoad
you can use showMap(yourlanditude,yourlongitude,divid where you want to show the map)
for example
<script>
showMap(45.121371,84.79029,'map1');
</script>