$(function() {
	$("#map").goMap({
		markers: [{ 
			latitude: 56.948813,
			longitude: 24.704004,
			id: 'dragMarker',
			html: {
				content: 'Click to map for add new markers!
Drag all new markers!
Double click to new marker for remove it!', popup: true } }], icon: '../img/apartment.png', addMarker: true, prefixId: 'mkId', // by default 'gomarker' disableDoubleClickZoom: true }); $("#default").click(function(){ $("#dump").html($.dump($.goMap.markers)); }); $("#remove").click(function(){ $.goMap.removeMarker('dragMarker'); }); });