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