var num = 1;
$(function() {
	$("#map").goMap({
		markers: [{ 
			latitude: 56.948813,
			longitude: 24.704004,
			title: 'marker title 1'
		}],
		icon: '../img/apartment.png'
	});

	$('#add').click(function() {
		$.goMap.createMarker({ 
			latitude: 56.948813 + num,
			longitude: 27.104004 + num,
			draggable: true
		});
		num += 1;
	});

	$("#delete").click(function() {
		$.goMap.removeMarker($.goMap.markers[0]);
	});
});