Leaflet.geojsonCSS
Leaflet.geojsonCSS copied to clipboard
Detect Leaflet in local scope
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