UNPKG

leaflet

Version:

JavaScript library for mobile-friendly interactive maps

21 lines (16 loc) 547 B
import * as L from './Leaflet.js'; export * from './Leaflet.js'; export default L; const oldL = getGlobalObject().L; getGlobalObject().L = L; getGlobalObject().L.noConflict = function () { getGlobalObject().L = oldL; return this; }; function getGlobalObject() { if (typeof globalThis !== 'undefined') { return globalThis; } if (typeof self !== 'undefined') { return self; } if (typeof window !== 'undefined') { return window; } if (typeof global !== 'undefined') { return global; } throw new Error('Unable to locate global object.'); }