Concrete implementation of ImagePlugin, the plugin is used to add an image to be used in the style.
This API can also be used for updating an image. If the image id was already added, it gets replaced by the new image.
The image can be used in icon-image, fill-pattern, and line-pattern.
See https://www.mapbox.com/mapbox-gl-js/style-spec/#layout-symbol-icon-image See https://www.mapbox.com/mapbox-gl-js/style-spec/#paint-line-line-pattern See https://www.mapbox.com/mapbox-gl-js/style-spec/#paint-fill-fill-pattern
Concrete implementation of ImagePlugin (see ImageExtensionImpl) but taking 9-patch Bitmap in order to calculate stretchX, stretchY and paddings automatically.
Data class describing 9-patch bitmap.
Extension function to add an image provided by the Style Extension to the Style.
Extension function to add 9-patch image provided by the Style Extension to the Style.
Adds an 9-patch image to be used in the style. X-stretches, Y-stretches and padding will be calculated from Bitmap.getNinePatchChunk.
DSL function for ImageExtensionImpl.
DSL function for ImageNinePatchExtensionImpl.
Utility function returning NinePatchImage from a given Bitmap.
Bitmap has to be in 9-patch format (.9.png) or RuntimeException will be thrown.