Skip to content

Commit

Permalink
types file extended
Browse files Browse the repository at this point in the history
  • Loading branch information
antoniovlx committed Apr 18, 2023
1 parent 86c24f9 commit e29f2a4
Showing 1 changed file with 22 additions and 6 deletions.
28 changes: 22 additions & 6 deletions index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,26 @@
import * as L from 'leaflet';

declare module 'leaflet' {
namespace Geoserver {
export function wms(baseLayerUrl: any, options?: any): any;
export function wfs(baseLayerUrl: any, options?: any): any;
export function legend(baseLayerUrl: any, options?: any): any;
export function wmsImage(baseLayerUrl: any, options?: any): any;
}
interface GeoserverOptions {
layers?: string;
format?: string;
transparent?: boolean;
CQL_FILTER?: string;
zIndex?: number;
version?: string;
srsname?: string;
attribution?: string;
fitLayer?: boolean;
style?: string;
onEachFeature?: (feature: any, layer?: Layer) => void;
width?: number;
height?: number;
}

namespace Geoserver {
export function wms(baseLayerUrl: string, options?: GeoserverOptions): L.TileLayer.WMS;
export function wfs(baseLayerUrl: string, options?: GeoserverOptions): any;
export function legend(baseLayerUrl: string, options?: GeoserverOptions): L.Control;
export function wmsImage(baseLayerUrl: string, options?: GeoserverOptions): any;
}
}

0 comments on commit e29f2a4

Please sign in to comment.