function myMap() {
var mapCanvas = document.getElementById("map");
var mapOptions = {
center: new google.maps.LatLng(52.2053, 0.1218),
zoom: 3,
mapTypeId:google.maps.MapTypeId.HYBRID
}
var map = new google.maps.Map(mapCanvas, mapOptions);
var myCity = new google.maps.LatLng(LAT, LNG);
var pinImage = new google.maps.MarkerImage("http://maps.google.com/mapfiles/ms/icons/blue-dot.png");
var myCity = new google.maps.Marker({position: myCity, icon: pinImage});
myCity.setMap(map);
google.maps.event.addListener(myCity, 'click', function () {
var myCity_window = new google.maps.InfoWindow({
content: 'add_image_stuff_here' 'and_text_here'
});
myCity_window.open(map, myCity);
});
The main variables you need to set are:
myCity:
name of your chosen city (change all instances)
LAT:
latitude of your city
LNG:
longitude of your city
Then just add your own image and text in the area marked content:
to finish off.
There are lots of other variables to play around with including type of map and display, icon, and where the map starts off.