Changeset 33762 in osm for applications
- Timestamp:
- 2017-11-03T02:12:40+01:00 (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/viewer/jmapviewer/src/org/openstreetmap/gui/jmapviewer/JMapViewer.java
r33313 r33762 11 11 import java.awt.event.MouseEvent; 12 12 import java.net.URL; 13 import java.util.ArrayList; 13 14 import java.util.Collections; 14 import java.util.LinkedList;15 15 import java.util.List; 16 16 … … 140 140 tileSource = new OsmTileSource.Mapnik(); 141 141 tileController = new TileController(tileSource, tileCache, this); 142 mapMarkerList = Collections.synchronizedList(new LinkedList<MapMarker>());143 mapPolygonList = Collections.synchronizedList(new LinkedList<MapPolygon>());144 mapRectangleList = Collections.synchronizedList(new LinkedList<MapRectangle>());142 mapMarkerList = Collections.synchronizedList(new ArrayList<MapMarker>()); 143 mapPolygonList = Collections.synchronizedList(new ArrayList<MapPolygon>()); 144 mapRectangleList = Collections.synchronizedList(new ArrayList<MapRectangle>()); 145 145 mapMarkersVisible = true; 146 146 mapRectanglesVisible = true; … … 770 770 List<? extends ICoordinate> coords = polygon.getPoints(); 771 771 if (coords != null && coords.size() >= 3) { 772 List<Point> points = new LinkedList<>();772 List<Point> points = new ArrayList<>(); 773 773 for (ICoordinate c : coords) { 774 774 Point p = getMapPosition(c, false); … … 782 782 int tilesize = tileSource.getTileSize(); 783 783 int mapSize = tilesize << zoom; 784 List<Point> pointsWrapped = new LinkedList<>(points);784 List<Point> pointsWrapped = new ArrayList<>(points); 785 785 boolean keepWrapping = true; 786 786 while (keepWrapping) { … … 793 793 polygon.paint(g, pointsWrapped); 794 794 } 795 pointsWrapped = new LinkedList<>(points);795 pointsWrapped = new ArrayList<>(points); 796 796 keepWrapping = true; 797 797 while (keepWrapping) {
Note:
See TracChangeset
for help on using the changeset viewer.