summaryrefslogtreecommitdiff
path: root/platform/android/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/maps/MapView.java
diff options
context:
space:
mode:
authortobrun <tobrun.van.nuland@gmail.com>2019-08-20 11:06:26 +0200
committerTobrun <tobrun.van.nuland@gmail.com>2019-08-20 12:59:07 +0300
commitad1d48af987dd43ec8c8dd298d8ef1962ac0b695 (patch)
treeea024f992748ca82d966935a58d0d5ccc5b92eb5 /platform/android/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/maps/MapView.java
parent1625aa00000c1d109f2650aa07dca2ef973f6f6c (diff)
downloadqtlocation-mapboxgl-ad1d48af987dd43ec8c8dd298d8ef1962ac0b695.tar.gz
[android] update javadoc on style image missing
Diffstat (limited to 'platform/android/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/maps/MapView.java')
-rw-r--r--platform/android/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/maps/MapView.java8
1 files changed, 6 insertions, 2 deletions
diff --git a/platform/android/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/maps/MapView.java b/platform/android/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/maps/MapView.java
index 1367de8729..4521d2ae60 100644
--- a/platform/android/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/maps/MapView.java
+++ b/platform/android/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/maps/MapView.java
@@ -1013,14 +1013,18 @@ public class MapView extends FrameLayout implements NativeMapView.ViewCallback {
}
/**
- * Interface definition for a callback to be invoked with the id of a missing icon.
+ * Interface definition for a callback to be invoked with the id of a missing icon. The icon should be added
+ * synchronously with {@link Style#addImage(String, Bitmap)} to be rendered on the current zoom level. When loading
+ * icons asynchronously, you can load a placeholder image and replace it when you icon has loaded.
* <p>
* {@link MapView#addOnStyleImageMissingListener(OnStyleImageMissingListener)}
* </p>
*/
public interface OnStyleImageMissingListener {
/**
- * Called when the map is missing an icon.
+ * Called when the map is missing an icon.The icon should be added synchronously with
+ * {@link Style#addImage(String, Bitmap)} to be rendered on the current zoom level. When loading icons
+ * asynchronously, you can load a placeholder image and replace it when you icon has loaded.
*
* @param id the id of the icon that is missing
*/