Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • ImageList

Index

Constructors

Methods

Constructors

constructor

  • new ImageList(arcGISVersion?: undefined | number): ImageList
  • Parameters

    • Optional arcGISVersion: undefined | number

    Returns ImageList

Methods

addToMap

  • addToMap(map: Map): Promise<void[]>
  • Add all images to a MapBox GL JS map instance so that they may be used in style layers. Call before adding layers created by styleForFeatureLayer.

    The ImageList may contain multiple copies of images at different dpi. Since MapBox GL does not currently support adding images at multiple resolutions this function will pick those that best match the current devicePixelRatio. If the devicePixelRatio changes (e.g. switching monitors), the images will not be updated and may be at a less than ideal resolution, though mapbox gl will still show them at the correct size.

    memberof

    ImageList

    Parameters

    • map: Map

    Returns Promise<void[]>

removeFromMap

  • removeFromMap(map: Map): Promise<void[]>
  • Remove a previously added ImageList from the map

    memberof

    ImageList

    Parameters

    • map: Map

    Returns Promise<void[]>

Legend

  • Module
  • Object literal
  • Variable
  • Function
  • Function with type parameter
  • Index signature
  • Type alias
  • Type alias with type parameter
  • Enumeration
  • Enumeration member
  • Property
  • Method
  • Interface
  • Interface with type parameter
  • Constructor
  • Property
  • Method
  • Index signature
  • Class
  • Class with type parameter
  • Constructor
  • Property
  • Method
  • Accessor
  • Index signature
  • Inherited constructor
  • Inherited property
  • Inherited method
  • Inherited accessor
  • Protected property
  • Protected method
  • Protected accessor
  • Private property
  • Private method
  • Private accessor
  • Static property
  • Static method

Generated using TypeDoc