$(function() {
	$("#map").goMap({
		markers: [{ 
			latitude: 56.948813,
			longitude: 24.704004,
			id: 'm1'
		}],
		icon: '../img/apartment.png',
		addMarker: true,
		disableDoubleClickZoom: true,
		address:'Tunis, Tunis'
	});

	$.goMap.createMarker({latitude: 48.948813, longitude: 15.704004, id: 'm2'});
	$.goMap.createMarker({latitude: 51.948813, longitude: 29.704004, id: 'm3'});

	$("#b1").click(function(){ 
		alert($.goMap.getBounds());
	});

	$("#b2").click(function(){ 
		$.goMap.fitBounds();
	});

	$("#b3").click(function(){ 
		$.goMap.showHideMarker('m2');
	});

	$("#b4").click(function(){ 
		$.goMap.fitBounds('visible');
	});

	$("#b5").click(function(){ 
		$.goMap.fitBounds('markers',['m2','m3']);
	});
});