maplibre-gl-svg-sprite - v0.1.0
    Preparing search index...

    Interface MapLibreLike

    Interface representing MapLibre GL JS or compatible mapping library with protocol registration capabilities

    interface MapLibreLike {
        addProtocol: (
            name: string,
            handler: (
                request: { url: string },
                callback: (
                    err?: any,
                    response?: { data?: null | string | object | ArrayBuffer },
                ) => void,
            ) => any,
        ) => void;
        removeProtocol: (name: string) => void;
    }
    Index

    Properties

    addProtocol: (
        name: string,
        handler: (
            request: { url: string },
            callback: (
                err?: any,
                response?: { data?: null | string | object | ArrayBuffer },
            ) => void,
        ) => any,
    ) => void

    Register a custom protocol handler for resource loading

    removeProtocol: (name: string) => void

    Remove a previously registered protocol handler