heigeo / leaflet.wms

A Leaflet plugin for working with Web Map services, providing: single-tile/untiled/nontiled layers, shared WMS sources, and GetFeatureInfo-powered identify.
http://heigeo.github.io/leaflet.wms/
MIT License
244 stars 135 forks source link

How Import Leaflet.wms to Angular Project? #73

Open fabiopacheco18 opened 3 years ago

distancerunner commented 2 years ago

add with npm i leaflet.wms

use this in your component.ts import * as LWMS from 'leaflet.wms';

load and add layer with

LWMS.overlay(wmsMapUrl, {
        layers: '', 
        version: '',
    }).addTo(this.leafletMap);

If you find another method, let me know :)