Interface SymbolIconLayer

A layer that displays one or more symbols at geographic points on the map.

interface SymbolIconLayer {
    iconImageUrl: string;
    id: string;
    type: "symbol";
    filter?: any[];
    imageOptions?: {
        pixelRatio?: number;
        sdf?: boolean;
    };
    interactive?: boolean;
    layout?: SymbolLayout;
    maxzoom?: number;
    metadata?: any;
    minzoom?: number;
    paint?: SymbolPaint;
    ref?: string;
    source?: string | AnySourceData;
    source-layer?: string;
}

Hierarchy

  • SymbolLayer
    • SymbolIconLayer

Properties

iconImageUrl: string

A URL to an image resource to be displayed as the symbol for the coordinates in the layer.

id: string
type: "symbol"
filter?: any[]
imageOptions?: {
    pixelRatio?: number;
    sdf?: boolean;
}

Options for the image resource.

Type declaration

  • Optional pixelRatio?: number
  • Optional sdf?: boolean
interactive?: boolean
layout?: SymbolLayout
maxzoom?: number
metadata?: any
minzoom?: number
paint?: SymbolPaint
ref?: string
source?: string | AnySourceData
source-layer?: string