Class ImageMBSource


public class ImageMBSource extends MediaMBSource
Wrapper around a JSONObject containing a Mapbox image source.
See Also:
  • Constructor Details

    • ImageMBSource

      public ImageMBSource(JSONObject json)
    • ImageMBSource

      public ImageMBSource(JSONObject json, MBObjectParser parser)
  • Method Details

    • getUrl

      public String getUrl()
      (Required) URL that points to an image.
      Returns:
      String for the URL
    • getType

      public String getType()
      Description copied from class: MBSource
      Type of source.
      Specified by:
      getType in class MBSource
      Returns:
      One of "vector", "raster", "geojson", "image", "video", "canvas".