@@ -69,7 +69,7 @@ public class MainActivity extends Activity
69
69
private volatile boolean prepareInProgress = false ;
70
70
private volatile boolean shortestPathRunning = false ;
71
71
private String currentArea = "berlin" ;
72
- private String fileListURL = "http://download2.graphhopper.com/public/maps/0.7 /" ;
72
+ private String fileListURL = "http://download2.graphhopper.com/public/maps/" + Constants . getMajorVersion () + " /" ;
73
73
private String prefixURL = fileListURL ;
74
74
private String downloadURL ;
75
75
private File mapsFolder ;
@@ -225,13 +225,13 @@ public boolean accept( File dir, String filename )
225
225
226
226
chooseArea (localButton , localSpinner , nameList ,
227
227
new MySpinnerListener ()
228
- {
229
- @ Override
230
- public void onSelect ( String selectedArea , String selectedFile )
231
- {
232
- initFiles (selectedArea );
233
- }
234
- });
228
+ {
229
+ @ Override
230
+ public void onSelect ( String selectedArea , String selectedFile )
231
+ {
232
+ initFiles (selectedArea );
233
+ }
234
+ });
235
235
}
236
236
237
237
private void chooseAreaFromRemote ()
@@ -366,13 +366,13 @@ protected Object saveDoInBackground( Void... _ignore )
366
366
downloader .setTimeout (30000 );
367
367
downloader .downloadAndUnzip (downloadURL , localFolder ,
368
368
new ProgressListener ()
369
- {
370
- @ Override
371
- public void update ( long val )
372
- {
373
- publishProgress ((int ) val );
374
- }
375
- });
369
+ {
370
+ @ Override
371
+ public void update ( long val )
372
+ {
373
+ publishProgress ((int ) val );
374
+ }
375
+ });
376
376
return null ;
377
377
}
378
378
@@ -407,13 +407,13 @@ void loadMap( File areaFolder )
407
407
408
408
tileRendererLayer = new TileRendererLayer (tileCache , mapDataStore ,
409
409
mapView .getModel ().mapViewPosition , false , true , AndroidGraphicFactory .INSTANCE )
410
- {
411
- @ Override
412
- public boolean onLongPress ( LatLong tapLatLong , Point layerXY , Point tapXY )
413
- {
414
- return onMapTap (tapLatLong , layerXY , tapXY );
415
- }
416
- };
410
+ {
411
+ @ Override
412
+ public boolean onLongPress ( LatLong tapLatLong , Point layerXY , Point tapXY )
413
+ {
414
+ return onMapTap (tapLatLong , layerXY , tapXY );
415
+ }
416
+ };
417
417
tileRendererLayer .setTextScale (1.5f );
418
418
tileRendererLayer .setXmlRenderTheme (InternalRenderTheme .OSMARENDER );
419
419
mapView .getModel ().mapViewPosition .setMapPosition (new MapPosition (mapDataStore .boundingBox ().getCenterPoint (), (byte ) 15 ));
0 commit comments