New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@mappable-world/mappable-default-ui-theme

Package Overview
Dependencies
Maintainers
1
Versions
25
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@mappable-world/mappable-default-ui-theme

Mappable Maps JS API 3.0 example @mappable-world/mappable-default-ui-theme

  • 0.0.1-beta.2
  • npm
  • Socket score

Version published
Weekly downloads
5
decreased by-83.33%
Maintainers
1
Weekly downloads
 
Created
Source

@mappable-world/mappable-default-ui-theme package


Mappable JS API package

npm version npm Build Status

How use

The package is located in the dist folder:

  • dist/types TypeScript types
  • dist/esm es6 modules for direct connection in your project
  • dist/index.js Mappable JS Module

Recommended use MMapButtonExample as usual npm package:

npm i @mappable-world/mappable-default-ui-theme

and dynamic import

await mappable.ready;

// ...

const {MMapButtonExample} = await import('@mappable-world/mappable-default-ui-theme');

// ...

map.addChild(new MMapButtonExample(props));

Usage without npm

You can use CDN with module loading handler in JS API on your page.

Just use mappable.import:

const pkg = await mappable.import('@mappable-world/mappable-default-ui-theme');

By default mappable.import can load self modules. If you want also load your package, should add loader:

// Add loader at start loaders array
mappable.import.loaders.unshift(async (pkg) => {
    // Process only your package
    if (!pkg.includes('@mappable-world/mappable-default-ui-theme')) return;

    // Load script directly. You can use another CDN
    await mappable.import.script(`https://unpkg.com/${pkg}/dist/index.js`);

    // Return result object
    return window['@mappable-world/mappable-default-ui-theme'];
});

FAQs

Package last updated on 15 May 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc