Changeset 19870 in osm for applications/viewer/jmapviewer/src/org/openstreetmap
- Timestamp:
- 2010-02-04T21:45:27+01:00 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/viewer/jmapviewer/src/org/openstreetmap/gui/jmapviewer/JMapViewer.java
r19697 r19870 494 494 if (mapMarkersVisible && mapMarkerList != null) { 495 495 for (MapMarker marker : mapMarkerList) { 496 Point p = getMapPosition(marker.getLat(), marker.getLon()); 497 if (p != null) { 498 marker.paint(g, p); 499 } 496 paintMarker(g, marker); 500 497 } 501 498 } 502 499 } 503 500 501 /** 502 * Paint a single marker. 503 */ 504 protected void paintMarker(Graphics g, MapMarker marker) { 505 Point p = getMapPosition(marker.getLat(), marker.getLon()); 506 if (p != null) { 507 marker.paint(g, p); 508 } 509 } 510 504 511 /** 505 512 * Moves the visible map pane. … … 626 633 public void addMapMarker(MapMarker marker) { 627 634 mapMarkerList.add(marker); 635 repaint(); 636 } 637 638 public void removeMapMarker(MapMarker marker) { 639 mapMarkerList.remove(marker); 628 640 repaint(); 629 641 }
Note:
See TracChangeset
for help on using the changeset viewer.