|
7 | 7 |
|
8 | 8 | import gov.nasa.worldwind.WorldWindow; |
9 | 9 | import gov.nasa.worldwind.event.*; |
10 | | -import gov.nasa.worldwind.geom.LatLon; |
| 10 | +import gov.nasa.worldwind.geom.*; |
11 | 11 | import gov.nasa.worldwind.layers.RenderableLayer; |
12 | 12 | import gov.nasa.worldwind.render.*; |
13 | 13 | import gov.nasa.worldwindx.applications.worldwindow.util.Util; |
@@ -63,15 +63,15 @@ protected void addShapes() |
63 | 63 | highlightAttrs.setInteriorMaterial(Material.RED); |
64 | 64 | highlightAttrs.setOutlineMaterial(Material.WHITE); |
65 | 65 |
|
66 | | - for (int lon = -180; lon < 180; lon += 10) |
| 66 | + for (int lon = -180; lon <= 170; lon += 10) |
67 | 67 | { |
68 | | - for (int lat = -90; lat < 90; lat += 10) |
| 68 | + for (int lat = -60; lat <= 60; lat += 10) |
69 | 69 | { |
70 | 70 | ExtrudedPolygon poly = new ExtrudedPolygon(Arrays.asList( |
71 | | - LatLon.fromDegrees(lat - 1, lon - 1), |
72 | | - LatLon.fromDegrees(lat - 1, lon + 1), |
73 | | - LatLon.fromDegrees(lat + 1, lon + 1), |
74 | | - LatLon.fromDegrees(lat + 1, lon - 1)), |
| 71 | + LatLon.fromDegrees(lat - 1, Angle.normalizedDegreesLongitude(lon - 1)), |
| 72 | + LatLon.fromDegrees(lat - 1, Angle.normalizedDegreesLongitude(lon + 1)), |
| 73 | + LatLon.fromDegrees(lat + 1, Angle.normalizedDegreesLongitude(lon + 1)), |
| 74 | + LatLon.fromDegrees(lat + 1, Angle.normalizedDegreesLongitude(lon - 1))), |
75 | 75 | 100000d); |
76 | 76 | poly.setHighlightAttributes(highlightAttrs); |
77 | 77 | poly.setSideHighlightAttributes(highlightAttrs); |
|
0 commit comments