Class BackgroundLayer

  • All Implemented Interfaces:
    Layer, java.lang.Iterable<Renderable>

    public class BackgroundLayer
    extends RenderableLayer
    Displays a single image spanning the globe. By default, BackgroundLayer is configured to display NASA's Blue Marble next generation image at 40km resolution from the built-in WorldWind library resource res/drawable/gov_nasa_worldwind_worldtopobathy2004053.
    • Constructor Detail

      • BackgroundLayer

        public BackgroundLayer()
        Constructs a Blue Marble background layer with the built-in WorldWind library resource res/drawable/gov_nasa_worldwind_worldtopobathy2004053. The resource must be accessible from the Android Context associated with the WorldWindow.
      • BackgroundLayer

        public BackgroundLayer​(ImageSource imageSource,
                               ImageOptions imageOptions)
        Constructs a background image layer with an image source. The image's dimensions must be no greater than 2048 x 2048.
        Parameters:
        imageSource - the image source
        imageOptions - the image options, or null to use the default options
        Throws:
        java.lang.IllegalArgumentException - If the image source is null