Leaflet.geojsonCSS icon indicating copy to clipboard operation
Leaflet.geojsonCSS copied to clipboard

Detect Leaflet in local scope

Open alexbrault opened this issue 7 years ago • 0 comments

When Leaflet is not exposed (e.g. when using Leaflet with RequireJs), window.L is not defined, but Leaflet might be available as plain L in the local scope. To solve this issue, instead of checking if window has an L member, we can check the type of L to see if it's defined

alexbrault avatar Mar 21 '17 19:03 alexbrault