Skip to content
Permalink
Browse files

Samples improvements #724

  • Loading branch information...
devemux86 committed Jul 27, 2018
1 parent a6fc38a commit b205c9aa487f71521325181afe4770556bac5296
Showing with 6 additions and 2 deletions.
  1. +6 −2 mapsforge-samples-awt/src/main/java/org/mapsforge/samples/awt/Samples.java
@@ -93,7 +93,7 @@ public static void main(String[] args) {
args = Arrays.copyOfRange(args, 1, args.length);
}

List<File> mapFiles = getMapFiles(args);
List<File> mapFiles = SHOW_RASTER_MAP ? null : getMapFiles(args);
final MapView mapView = createMapView();
final BoundingBox boundingBox = addLayers(mapView, mapFiles, hillsCfg);

@@ -210,7 +210,11 @@ public boolean onTap(LatLong tapLatLong, Point layerXY, Point tapXY) {

private static File getDemFolder(String[] args) {
if (args.length == 0) {
throw new IllegalArgumentException("missing argument: <mapFile>");
if (SHOW_RASTER_MAP) {
return null;
} else {
throw new IllegalArgumentException("missing argument: <mapFile>");
}
}

File demFolder = new File(args[0]);

0 comments on commit b205c9a

Please sign in to comment.
You can’t perform that action at this time.