Merge branch 'mapsforge:master' into master
This commit is contained in:
commit
f9c696e393
@ -16,27 +16,27 @@ implementation 'org.slf4j:slf4j-api:1.7.28'
|
|||||||
|
|
||||||
### Android
|
### Android
|
||||||
```groovy
|
```groovy
|
||||||
implementation 'org.mapsforge:vtm-android:[CURRENT-VERSION]'
|
|
||||||
implementation 'org.mapsforge:vtm-android:[CURRENT-VERSION]:natives-armeabi-v7a'
|
implementation 'org.mapsforge:vtm-android:[CURRENT-VERSION]:natives-armeabi-v7a'
|
||||||
implementation 'org.mapsforge:vtm-android:[CURRENT-VERSION]:natives-arm64-v8a'
|
implementation 'org.mapsforge:vtm-android:[CURRENT-VERSION]:natives-arm64-v8a'
|
||||||
implementation 'org.mapsforge:vtm-android:[CURRENT-VERSION]:natives-x86'
|
implementation 'org.mapsforge:vtm-android:[CURRENT-VERSION]:natives-x86'
|
||||||
implementation 'org.mapsforge:vtm-android:[CURRENT-VERSION]:natives-x86_64'
|
implementation 'org.mapsforge:vtm-android:[CURRENT-VERSION]:natives-x86_64'
|
||||||
|
implementation 'org.mapsforge:vtm-android:[CURRENT-VERSION]'
|
||||||
implementation 'com.caverock:androidsvg:1.4'
|
implementation 'com.caverock:androidsvg:1.4'
|
||||||
```
|
```
|
||||||
|
|
||||||
### Android (libGDX)
|
### Android (libGDX)
|
||||||
```groovy
|
```groovy
|
||||||
implementation 'org.mapsforge:vtm-android:[CURRENT-VERSION]'
|
|
||||||
implementation 'org.mapsforge:vtm-android:[CURRENT-VERSION]:natives-armeabi-v7a'
|
implementation 'org.mapsforge:vtm-android:[CURRENT-VERSION]:natives-armeabi-v7a'
|
||||||
implementation 'org.mapsforge:vtm-android:[CURRENT-VERSION]:natives-arm64-v8a'
|
implementation 'org.mapsforge:vtm-android:[CURRENT-VERSION]:natives-arm64-v8a'
|
||||||
implementation 'org.mapsforge:vtm-android:[CURRENT-VERSION]:natives-x86'
|
implementation 'org.mapsforge:vtm-android:[CURRENT-VERSION]:natives-x86'
|
||||||
implementation 'org.mapsforge:vtm-android:[CURRENT-VERSION]:natives-x86_64'
|
implementation 'org.mapsforge:vtm-android:[CURRENT-VERSION]:natives-x86_64'
|
||||||
|
implementation 'org.mapsforge:vtm-android:[CURRENT-VERSION]'
|
||||||
implementation 'org.mapsforge:vtm-gdx:[CURRENT-VERSION]'
|
implementation 'org.mapsforge:vtm-gdx:[CURRENT-VERSION]'
|
||||||
implementation 'org.mapsforge:vtm-android-gdx:[CURRENT-VERSION]'
|
|
||||||
implementation 'org.mapsforge:vtm-android-gdx:[CURRENT-VERSION]:natives-armeabi-v7a'
|
implementation 'org.mapsforge:vtm-android-gdx:[CURRENT-VERSION]:natives-armeabi-v7a'
|
||||||
implementation 'org.mapsforge:vtm-android-gdx:[CURRENT-VERSION]:natives-arm64-v8a'
|
implementation 'org.mapsforge:vtm-android-gdx:[CURRENT-VERSION]:natives-arm64-v8a'
|
||||||
implementation 'org.mapsforge:vtm-android-gdx:[CURRENT-VERSION]:natives-x86'
|
implementation 'org.mapsforge:vtm-android-gdx:[CURRENT-VERSION]:natives-x86'
|
||||||
implementation 'org.mapsforge:vtm-android-gdx:[CURRENT-VERSION]:natives-x86_64'
|
implementation 'org.mapsforge:vtm-android-gdx:[CURRENT-VERSION]:natives-x86_64'
|
||||||
|
implementation 'org.mapsforge:vtm-android-gdx:[CURRENT-VERSION]'
|
||||||
implementation 'com.badlogicgames.gdx:gdx:1.9.10'
|
implementation 'com.badlogicgames.gdx:gdx:1.9.10'
|
||||||
implementation 'com.badlogicgames.gdx:gdx-backend-android:1.9.10'
|
implementation 'com.badlogicgames.gdx:gdx-backend-android:1.9.10'
|
||||||
implementation 'com.caverock:androidsvg:1.4'
|
implementation 'com.caverock:androidsvg:1.4'
|
||||||
|
@ -12,7 +12,7 @@ org.gradle.jvmargs=-Xmx2048m -Dfile.encoding=UTF-8
|
|||||||
# http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects
|
# http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects
|
||||||
# org.gradle.parallel=true
|
# org.gradle.parallel=true
|
||||||
# AndroidX package structure to make it clearer which packages are bundled with the
|
# AndroidX package structure to make it clearer which packages are bundled with the
|
||||||
# Android operating system, and which are packaged with your app"s APK
|
# Android operating system, and which are packaged with your app's APK
|
||||||
# https://developer.android.com/topic/libraries/support-library/androidx-rn
|
# https://developer.android.com/topic/libraries/support-library/androidx-rn
|
||||||
android.useAndroidX=true
|
android.useAndroidX=true
|
||||||
# Enables namespacing of each library's R class so that its R class includes only the
|
# Enables namespacing of each library's R class so that its R class includes only the
|
||||||
|
2
gradle/wrapper/gradle-wrapper.properties
vendored
2
gradle/wrapper/gradle-wrapper.properties
vendored
@ -1,5 +1,5 @@
|
|||||||
distributionBase=GRADLE_USER_HOME
|
distributionBase=GRADLE_USER_HOME
|
||||||
distributionPath=wrapper/dists
|
distributionPath=wrapper/dists
|
||||||
distributionUrl=https\://services.gradle.org/distributions/gradle-7.3.3-bin.zip
|
distributionUrl=https\://services.gradle.org/distributions/gradle-7.4-bin.zip
|
||||||
zipStoreBase=GRADLE_USER_HOME
|
zipStoreBase=GRADLE_USER_HOME
|
||||||
zipStorePath=wrapper/dists
|
zipStorePath=wrapper/dists
|
||||||
|
@ -58,7 +58,7 @@ android {
|
|||||||
lintOptions { abortOnError false }
|
lintOptions { abortOnError false }
|
||||||
|
|
||||||
packagingOptions {
|
packagingOptions {
|
||||||
exclude 'META-INF/services/org.jeo.data.Driver'
|
exclude 'META-INF/services/io.jeo.data.Driver'
|
||||||
exclude 'META-INF/LICENSE'
|
exclude 'META-INF/LICENSE'
|
||||||
exclude 'META-INF/NOTICE'
|
exclude 'META-INF/NOTICE'
|
||||||
}
|
}
|
||||||
|
@ -32,7 +32,7 @@ run {
|
|||||||
task fatJar(type: Jar, dependsOn: configurations.runtimeClasspath) {
|
task fatJar(type: Jar, dependsOn: configurations.runtimeClasspath) {
|
||||||
classifier 'jar-with-dependencies'
|
classifier 'jar-with-dependencies'
|
||||||
from { configurations.runtimeClasspath.collect { it.isDirectory() ? it : zipTree(it) } }
|
from { configurations.runtimeClasspath.collect { it.isDirectory() ? it : zipTree(it) } }
|
||||||
exclude 'META-INF/*.DSA', 'META-INF/*.RSA', 'META-INF/*.SF'
|
exclude 'META-INF/*.DSA', 'META-INF/*.RSA', 'META-INF/*.SF', 'META-INF/services/io.jeo.data.Driver'
|
||||||
manifest {
|
manifest {
|
||||||
attributes 'Main-Class': "${mainClassName}"
|
attributes 'Main-Class': "${mainClassName}"
|
||||||
}
|
}
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright 2012, 2013 Hannes Janetzek
|
* Copyright 2012, 2013 Hannes Janetzek
|
||||||
* Copyright 2016 Longri
|
* Copyright 2016 Longri
|
||||||
* Copyright 2018 devemux86
|
* Copyright 2018-2022 devemux86
|
||||||
*
|
*
|
||||||
* This file is part of the OpenScienceMap project (http://www.opensciencemap.org).
|
* This file is part of the OpenScienceMap project (http://www.opensciencemap.org).
|
||||||
*
|
*
|
||||||
@ -34,7 +34,7 @@ import java.nio.ShortBuffer;
|
|||||||
import static org.oscim.backend.GLAdapter.gl;
|
import static org.oscim.backend.GLAdapter.gl;
|
||||||
|
|
||||||
public class MapRenderer {
|
public class MapRenderer {
|
||||||
static final Logger log = LoggerFactory.getLogger(MapRenderer.class);
|
private static final Logger log = LoggerFactory.getLogger(MapRenderer.class);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* scale factor used for short vertices
|
* scale factor used for short vertices
|
||||||
@ -93,7 +93,11 @@ public class MapRenderer {
|
|||||||
|
|
||||||
mMap.beginFrame();
|
mMap.beginFrame();
|
||||||
|
|
||||||
draw();
|
try {
|
||||||
|
draw();
|
||||||
|
} catch (Throwable t) {
|
||||||
|
log.error(t.getMessage(), t);
|
||||||
|
}
|
||||||
|
|
||||||
mMap.doneFrame(rerender);
|
mMap.doneFrame(rerender);
|
||||||
|
|
||||||
|
@ -308,13 +308,11 @@ public class MapDatabase implements ITileDataSource {
|
|||||||
processBlocks(sink, queryParameters, subFileParameter, tile.getBoundingBox(), Selector.ALL, new MapReadResult());
|
processBlocks(sink, queryParameters, subFileParameter, tile.getBoundingBox(), Selector.ALL, new MapReadResult());
|
||||||
else
|
else
|
||||||
processBlocks(sink, queryParameters, subFileParameter);
|
processBlocks(sink, queryParameters, subFileParameter);
|
||||||
|
sink.completed(QueryResult.SUCCESS);
|
||||||
} catch (Throwable t) {
|
} catch (Throwable t) {
|
||||||
log.error(t.getMessage(), t);
|
log.error(t.getMessage(), t);
|
||||||
sink.completed(QueryResult.FAILED);
|
sink.completed(QueryResult.FAILED);
|
||||||
return;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
sink.completed(QueryResult.SUCCESS);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
@ -74,12 +74,11 @@ public class MultiMapDatabase implements ITileDataSource {
|
|||||||
mapDatabase.query(tile, dataSink);
|
mapDatabase.query(tile, dataSink);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
sink.completed(QueryResult.SUCCESS);
|
||||||
} catch (Throwable t) {
|
} catch (Throwable t) {
|
||||||
log.error(t.getMessage(), t);
|
log.error(t.getMessage(), t);
|
||||||
sink.completed(QueryResult.FAILED);
|
sink.completed(QueryResult.FAILED);
|
||||||
return;
|
|
||||||
}
|
}
|
||||||
sink.completed(QueryResult.SUCCESS);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
Loading…
x
Reference in New Issue
Block a user