Nefariously Programmed Mecha

    @jawg/js-loader
    TypeScript icon, indicating that this package has built-in type declarations

    1.0.0 • Public • Published

    js-loader

    npm

    Load the Jawg Maps JavaScript libraries dynamically.

    Install

    Available via npm as the package @jawg/js-loader.

    npm i @jawg/js-loader

    or

    yarn add @jawg/js-loader

    Alternatively you may add the umd package directly to the html document using the unpkg link.

    <script src="https://unpkg.com/@jawg/js-loader@1.0.0/dist/jawg-js-loader.js"></script>

    When adding via unpkg, the loader can be accessed at JawgJSLoader.

    Load Jawg Places JS

    import JawgJSLoader from '@jawg/js-loader';
    
    let loader = new JawgJSLoader({ accessToken: '<YOUR_ACCESS_TOKEN>' });
    
    loader.loadJawgPlaces().then((JawgPlaces) => {
      let jawgPlaces = new JawgPlaces.Input({ input: '#my-input' });
    });

    Feedback

    Please submint an issue for new features or when something is not working properly.

    Install

    npm i @jawg/js-loader

    DownloadsWeekly Downloads

    111

    Version

    1.0.0

    License

    MIT

    Unpacked Size

    7.99 kB

    Total Files

    7

    Last publish

    Collaborators

    • jawg-bot
    • joxit