
var startZoom = 14;

var map;
    

function addMarker(latitude, longitude, description) {
var marker = new GMarker(new GLatLng(latitude, longitude));
GEvent.addListener(marker, 'click', function() {
marker.openInfoWindowHtml(description);
}
);
map.addOverlay(marker);
}    
function load() {
var centerLongitude = 51.240815597945456;
var centerLatitude = 22.55690574645996;

var markers = [
{
'latitude':  centerLongitude,
'longitude':centerLatitude,
'name': "ul. Józefa Piłsudskiego 14, 20-011 Lublin"
}
];


if (GBrowserIsCompatible()) {
map = new GMap2(document.getElementById("articleMap"));
map.addControl(new GLargeMapControl()); 
         var MapTypes = map.getMapTypes(); 
            
          
         MapTypes[0].getName= function() { return "Mapa";} 
         MapTypes[1].getName = function() { return "Satelitarna";} 
         MapTypes[2].getName = function() { return "Hybrydowa";} 
         map.addControl(new GMapTypeControl()); 
map.setCenter(new GLatLng(centerLongitude,centerLatitude), startZoom);
  for(id = 0; id < markers.length; id++) {
  addMarker(markers[id].latitude, markers[id].longitude, markers[id].name);
  }
}
}
