leaflet.wms icon indicating copy to clipboard operation
leaflet.wms copied to clipboard

How Import Leaflet.wms to Angular Project?

Open fabiopacheco18 opened this issue 3 years ago • 1 comments

fabiopacheco18 avatar Sep 28 '21 09:09 fabiopacheco18

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 :)

distancerunner avatar Jan 06 '22 14:01 distancerunner