@mappable-world/mappable-default-ui-theme package
Mappable JS API package
How use
The package is located in the dist
folder:
dist/types
TypeScript typesdist/esm
es6 modules for direct connection in your projectdist/index.js
Mappable JS Module
Recommended use @mappable-world/mappable-default-ui-theme
as usual npm package:
npm install @mappable-world/mappable-default-ui-theme
and dynamic import
await mappable.ready;
const {MMapZoomControl} = await import('@mappable-world/mappable-default-ui-theme');
map.addChild(new MMapDefaultMarker(props));
Usage without npm
You can use CDN with module loading handler in JS API on your page.
By default mappable.import
can load self modules.
Just use mappable.registerCdn
and mappable.import
:
mappable.import.registerCdn(
'https://cdn.jsdelivr.net/npm/{package}',
'@mappable-world/mappable-default-ui-theme@latest'
);
const pkg = await mappable.import('@mappable-world/mappable-default-ui-theme');
More about working with the package
Read more about working with the package in the documentation.