public static interface MapView.OnStyleImageMissingListener
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.
MapView.addOnStyleImageMissingListener(OnStyleImageMissingListener)
Modifier and Type | Method | Description |
---|---|---|
void |
onStyleImageMissing(java.lang.String id) |
Called when the map is missing an icon.The icon should be added synchronously with
Style.addImage(String, Bitmap) to be rendered on the current zoom level. |
void onStyleImageMissing(@NonNull java.lang.String id)
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.id
- the id of the icon that is missing