@types/leaflet.wms
TypeScript icon, indicating that this package has built-in type declarations

0.2.3 • Public • Published

Installation

npm install --save @types/leaflet.wms

Summary

This package contains type definitions for leaflet.wms (https://github.com/heigeo/leaflet.wms).

Details

Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/leaflet.wms.

index.d.ts

//// <reference types="leaflet" />

import * as L from "leaflet";

export interface WmsParamsOptions extends L.WMSParams {
    crs?: string;
    uppercase?: boolean;
    attribution?: string;
    opacity?: number;
    isBack?: boolean;
    minZoom?: number;
    maxZoom?: number;
}

export interface SourceOptions extends L.LayerOptions {
    untiled: boolean;
    indentify: boolean;
}

export class Source extends L.Layer {
    options: SourceOptions;
    subLayers: any;
    _url: string;
    _overlay: any;

    constructor(url: string, options: WmsParamsOptions);

    initialize(url: string, options: SourceOptions): void;
    createOverlay(untiled: boolean): any;
    onAdd(): any;
    getEvents(): any;
    setOpacity(opacity: boolean): void;
    bringToBack(): void;
    bringToFront(): void;
    getLayer(name: string): any;
    addSubLayer(name: string): void;
    removeSubLayer(name: string): void;
    refreshOverlay(): void;
    identify(evt: any): void;
    getFeatureInfo(point: any, latLng: L.LatLng, layers: any, callback: any): void;
    ajax(url: string, callback: any): void;
    getIdentifyLayers(): any;
    getFeatureInfoParams(point: any, layers: any): any;
    parseFeatureInfo(result: string, url: string): string;
    showFeatureInfo(latlng: L.LatLng, info: any): void;
    showWaiting(): void;
    hideWaiting(): void;
}

export function source(url: string, options: WmsParamsOptions): Source;
export function layer(source: string, options: WmsParamsOptions): any;
export function getSourceForUrl(url: string, options: WmsParamsOptions): any;
export function overlay(url: string, options: WmsParamsOptions): any;

Additional Details

  • Last updated: Tue, 07 Nov 2023 09:09:38 GMT
  • Dependencies: @types/leaflet

Credits

These definitions were written by Antonio Vida.

Readme

Keywords

none

Package Sidebar

Install

npm i @types/leaflet.wms

Weekly Downloads

389

Version

0.2.3

License

MIT

Unpacked Size

5.93 kB

Total Files

5

Last publish

Collaborators

  • types