geostyler-style
    Preparing search index...

    Interface Sprite

    Configuration for a sprite image.

    interface Sprite {
        position: [
            number
            | GeoStylerNumberFunction,
            number | GeoStylerNumberFunction,
        ];
        size: [number | GeoStylerNumberFunction, number | GeoStylerNumberFunction];
        source: string | GeoStylerStringFunction;
    }
    Index

    Properties

    Properties

    position: [number | GeoStylerNumberFunction, number | GeoStylerNumberFunction]

    The starting position of the sprite to cut out. Origing [0, 0] is top left in pixels.

    The size of the sprite [width, height] in pixels.

    source: string | GeoStylerStringFunction

    A path/URL to the sprite image file.