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 and Description |
---|---|
void |
onStyleImageMissing(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(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© 2015–2019 Mapbox. All rights reserved.