Skip to content

Commit 0ca01ed

Browse files
authored
Merge pull request graphhopper#970 from devemux86/vtm
Android: update VTM 0.7.0 OpenGL vector map library
2 parents 6d770f8 + 6023817 commit 0ca01ed

File tree

2 files changed

+13
-13
lines changed

2 files changed

+13
-13
lines changed

android/app/build.gradle

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -41,15 +41,15 @@ dependencies {
4141
exclude group: 'org.apache.xmlgraphics', module: 'xmlgraphics-commons'
4242
}
4343

44-
compile 'org.mapsforge:vtm:0.6.0'
45-
compile 'org.mapsforge:vtm-android:0.6.0'
46-
compile 'org.mapsforge:vtm-android:0.6.0:natives-armeabi'
47-
compile 'org.mapsforge:vtm-android:0.6.0:natives-armeabi-v7a'
48-
compile 'org.mapsforge:vtm-android:0.6.0:natives-x86'
49-
compile 'org.mapsforge:vtm-jts:0.6.0'
50-
compile 'org.mapsforge:vtm-themes:0.6.0'
44+
compile 'org.mapsforge:vtm:0.7.0'
45+
compile 'org.mapsforge:vtm-android:0.7.0'
46+
compile 'org.mapsforge:vtm-android:0.7.0:natives-armeabi'
47+
compile 'org.mapsforge:vtm-android:0.7.0:natives-armeabi-v7a'
48+
compile 'org.mapsforge:vtm-android:0.7.0:natives-x86'
49+
compile 'org.mapsforge:vtm-jts:0.7.0'
50+
compile 'org.mapsforge:vtm-themes:0.7.0'
5151
compile 'com.caverock:androidsvg:1.2.2-beta-1'
52-
compile 'com.vividsolutions:jts:1.13'
52+
compile 'com.vividsolutions:jts-core:1.14.0'
5353

5454
compile 'org.slf4j:slf4j-api:1.7.21'
5555
compile 'org.slf4j:slf4j-android:1.7.21'

android/app/src/main/java/com/graphhopper/android/MainActivity.java

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -354,8 +354,8 @@ protected void onPostExecute(Object _ignore) {
354354
void loadMap(File areaFolder) {
355355
logUser("loading map");
356356

357-
// Long press receiver
358-
mapView.map().layers().add(new LongPressLayer(mapView.map()));
357+
// Map events receiver
358+
mapView.map().layers().add(new MapEventsReceiver(mapView.map()));
359359

360360
// Map file source
361361
MapFileTileSource tileSource = new MapFileTileSource();
@@ -393,7 +393,7 @@ protected void onPostExecute(Path o) {
393393
logUser("An error happened while creating graph:"
394394
+ getErrorMessage());
395395
} else {
396-
logUser("Finished loading graph. Press long to define where to start and end the route.");
396+
logUser("Finished loading graph. Long press to define where to start and end the route.");
397397
}
398398

399399
finishPrepare();
@@ -513,9 +513,9 @@ public interface MySpinnerListener {
513513
void onSelect(String selectedArea, String selectedFile);
514514
}
515515

516-
class LongPressLayer extends Layer implements GestureListener {
516+
class MapEventsReceiver extends Layer implements GestureListener {
517517

518-
LongPressLayer(org.oscim.map.Map map) {
518+
MapEventsReceiver(org.oscim.map.Map map) {
519519
super(map);
520520
}
521521

0 commit comments

Comments
 (0)