summaryrefslogtreecommitdiff
path: root/platform/android/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/style/sources/GeoJsonSource.java
diff options
context:
space:
mode:
authorŁukasz Paczos <lukas.paczos@gmail.com>2018-08-07 19:47:23 +0200
committerŁukasz Paczos <lukasz.paczos@mapbox.com>2018-08-21 11:56:08 +0200
commit2c093e7f0b79072d3107ffab09e70255552916db (patch)
treee6bcb26a322d72a437009957037292e4b4bf8694 /platform/android/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/style/sources/GeoJsonSource.java
parent5297f563a4dd6a9d25c7f45714d54d45897f3bb0 (diff)
downloadqtlocation-mapboxgl-2c093e7f0b79072d3107ffab09e70255552916db.tar.gz
[android] - converting GeoJsonSource Java features to core ones on a worker thread
Diffstat (limited to 'platform/android/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/style/sources/GeoJsonSource.java')
-rw-r--r--platform/android/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/style/sources/GeoJsonSource.java12
1 files changed, 8 insertions, 4 deletions
diff --git a/platform/android/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/style/sources/GeoJsonSource.java b/platform/android/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/style/sources/GeoJsonSource.java
index 65cd908ae4..2d9b1c985a 100644
--- a/platform/android/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/style/sources/GeoJsonSource.java
+++ b/platform/android/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/style/sources/GeoJsonSource.java
@@ -188,7 +188,8 @@ public class GeoJsonSource extends Source {
}
/**
- * Updates the GeoJson with a single feature
+ * Updates the GeoJson with a single feature. The update is performed asynchronously,
+ * so the data won't be immediately visible or available to query when this method returns.
*
* @param feature the GeoJSON {@link Feature} to set
*/
@@ -198,7 +199,8 @@ public class GeoJsonSource extends Source {
}
/**
- * Updates the GeoJson with a single geometry
+ * Updates the GeoJson with a single geometry. The update is performed asynchronously,
+ * so the data won't be immediately visible or available to query when this method returns.
*
* @param geometry the GeoJSON {@link Geometry} to set
*/
@@ -208,7 +210,8 @@ public class GeoJsonSource extends Source {
}
/**
- * Updates the GeoJson
+ * Updates the GeoJson. The update is performed asynchronously,
+ * so the data won't be immediately visible or available to query when this method returns.
*
* @param features the GeoJSON FeatureCollection
*/
@@ -218,7 +221,8 @@ public class GeoJsonSource extends Source {
}
/**
- * Updates the GeoJson
+ * Updates the GeoJson. The update is performed asynchronously,
+ * so the data won't be immediately visible or available to query when this method returns.
*
* @param json the raw GeoJson FeatureCollection string
*/