Index: src/org/openstreetmap/gui/jmapviewer/JMapViewer.java
===================================================================
--- src/org/openstreetmap/gui/jmapviewer/JMapViewer.java	(revision 19868)
+++ src/org/openstreetmap/gui/jmapviewer/JMapViewer.java	(working copy)
@@ -493,15 +493,22 @@
 
         if (mapMarkersVisible && mapMarkerList != null) {
             for (MapMarker marker : mapMarkerList) {
-                Point p = getMapPosition(marker.getLat(), marker.getLon());
-                if (p != null) {
-                    marker.paint(g, p);
-                }
+                paintMarker(g, marker);
             }
         }
     }
 
     /**
+     * Paint a single marker.
+     */
+    protected void paintMarker(Graphics g, MapMarker marker) {
+        Point p = getMapPosition(marker.getLat(), marker.getLon());
+        if (p != null) {
+            marker.paint(g, p);
+        }
+    }
+    
+    /**
      * Moves the visible map pane.
      * 
      * @param x
@@ -628,6 +635,11 @@
         repaint();
     }
 
+    public void removeMapMarker(MapMarker marker) {
+        mapMarkerList.remove(marker);
+        repaint();
+    }
+
     public void addMapRectangle(MapRectangle rectangle) {
         mapRectangleList.add(rectangle);
         repaint();
