Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface LayerOptions

Hierarchy

  • any
    • LayerOptions

Index

Properties

alpha

alpha: number

blendMode

blendMode: string

blur

blur: number

darkStyle

darkStyle: boolean

filters

filters: string[]

includeText

includeText: boolean

largeText

largeText: boolean

mask

mask: string

metric

metric: boolean

text

text: boolean

Optional type

type: "tile" | "vector" | "geojson" | "text"

The map content source type to use. If not provided, the default for the associated layer code will be used.

The following types are supported:

  • tile: render the layer using raster tiles
  • vector: render the layer using vector elements, e.g. markers, polygons and/or polylines
  • geojson: render GeoJSON data using vector elements, e.g. markers, polygons and/or polylines
  • text: render the layer using text labels

Optional validate

validate: boolean

A Boolean indicating whether the layer name should be validated when adding to the map. The default value is true.

When enabled for raster layers, the layer code will be validated to ensure it is a valid AMP raster layer in order to prevent 404 request errors for invalid layer requests.

Generated using TypeDoc