Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How Import Leaflet.wms to Angular Project? #73

Open
fabiopacheco18 opened this issue Sep 28, 2021 · 1 comment
Open

How Import Leaflet.wms to Angular Project? #73

fabiopacheco18 opened this issue Sep 28, 2021 · 1 comment

Comments

@fabiopacheco18
Copy link

No description provided.

@distancerunner
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants