Download jQuery 1.4.X or higher and jQuery UI 1.8.X or higher or use Googles or Microsofts CDN.
<script src="http://maps.google.com/maps/api/js?sensor=true" type="text/javascript"></script> <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.5/jquery.min.js" type="text/javascript"></script> <script src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.9/jquery-ui.min.js" type="text/javascript"></script> <script src="PATH_TO_PLUGIN/jquery.ui.map.js" type="text/javascript"></script>
<script type="text/javascript"> $(function() { $('#map_canvas').gmap({'center': new google.maps.LatLng(59.3426606750, 18.0736160278), 'callback': function () { $('#map_canvas').gmap('addMarker', { 'MY_OWN_PROPTERY': 'HAS_A_VALUE_A', 'position': new google.maps.LatLng(59.3426606750, 18.0736160278), 'title': 'Marker A'}); $('#map_canvas').gmap('addMarker', { 'MY_OWN_PROPTERY': 'HAS_A_VALUE_B', 'position': new google.maps.LatLng(58.3426606750, 18.0736160278), 'title': 'Marker B'}); $('#map_canvas').gmap('findMarker', 'MY_OWN_PROPTERY', 'HAS_A_VALUE_A', function(found, marker) { if ( found ) marker.setVisible(true); else marker.setVisible(false); }); }}); }); </script>