$(function() {
	$("#map").goMap({
		markers: [{ 
			latitude: 56.948813,
			longitude: 24.704004,
			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, disableDoubleClickZoom: true }); $("#count").click(function(){ alert($.goMap.getMarkerCount()); }); $("#clear").click(function() { $.goMap.clearMarkers(); }); });