Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: iamtekson/leaflet-geoserver-request
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v1.3.0
Choose a base ref
...
head repository: iamtekson/leaflet-geoserver-request
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: master
Choose a head ref
  • 6 commits
  • 2 files changed
  • 3 contributors

Commits on Apr 4, 2023

  1. Update Readme.MD

    iamtekson authored Apr 4, 2023

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    86c24f9 View commit details

Commits on Apr 18, 2023

  1. types file extended

    antoniovlx committed Apr 18, 2023
    Copy the full SHA
    e29f2a4 View commit details
  2. Merge pull request #17 from antoniovlx/types_file_improved

    types file extended
    iamtekson authored Apr 18, 2023
    Copy the full SHA
    b46e7b6 View commit details

Commits on Jul 5, 2023

  1. Copy the full SHA
    ca107ca View commit details
  2. Add alt text

    Snailedlt authored Jul 5, 2023
    Copy the full SHA
    7390212 View commit details
  3. Merge pull request #19 from Snailedlt/update_youtube_thumbnails_in_re…

    …adme
    
    Update readme with better youtube thumbnail
    iamtekson authored Jul 5, 2023
    Copy the full SHA
    95d5751 View commit details
Showing with 24 additions and 7 deletions.
  1. +2 −1 Readme.MD
  2. +22 −6 index.d.ts
3 changes: 2 additions & 1 deletion Readme.MD
Original file line number Diff line number Diff line change
@@ -3,6 +3,7 @@
[![Build Status](https://travis-ci.org/iamtekson/leaflet-geoserver-request.svg?branch=master)](https://travis-ci.org/iamtekson/leaflet-geoserver-request)
![GitHub release (latest by date)](https://img.shields.io/github/v/release/iamtekson/L.Geoserver)
![GitHub file size in bytes](https://img.shields.io/github/size/iamtekson/L.Geoserver/src/L.Geoserver.js)
![npm](https://img.shields.io/npm/dt/leaflet-geoserver-request)


This is the plugin for Geoserver various kind of requests. Using this plugin, we can make WMS, WFS, getLegendGraphic, WMS-Image request.
@@ -11,7 +12,7 @@ This is the plugin for Geoserver various kind of requests. Using this plugin, we

### Video tutorial

[![Youtube link](http://i3.ytimg.com/vi/fdUpaWd6I_Y/hqdefault.jpg)](https://youtu.be/fdUpaWd6I_Y)
[![Youtube Video](https://markdown-videos.vercel.app/youtube/fdUpaWd6I_Y)](https://youtu.be/fdUpaWd6I_Y)

### Installation and setup

28 changes: 22 additions & 6 deletions index.d.ts
Original file line number Diff line number Diff line change
@@ -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;
}
}