vue-tianditu2
Version:
18 lines (17 loc) • 414 B
JavaScript
import { toBounds as l } from "../../../utils/converter.mjs";
function a(n, r) {
const { url: e, minZoom: t, maxZoom: i, errorTileUrl: u, opacity: m, zIndex: d, bounds: o } = n;
return new T.TileLayer.TDT(e, {
minZoom: t,
maxZoom: i,
errorTileUrl: u,
opacity: m,
zIndex: d,
bounds: o.length ? l(o) : void 0,
...r
});
}
export {
a as useInit
};
//# sourceMappingURL=init.mjs.map