Code Monkey home page Code Monkey logo

async-google-maps's Introduction

Asynchronous loading and creation of google maps

Build Status npm

Why use this module?

I wrote this module to have the simplest possible public API and to handle the common case of waiting to add things to the map until it is idle. It is also targeted at making the creation of multiple map instances easier to manage, since each call to create will return a promise. There is another library you can use if you don't like mine.

Additionally, I have focused on code readability, test quality, and attempted to make this an easy module to TDD with as a dependency. You can easily stub the API, instead of having to verify properties of the module itself. TDD is a passion of mine.

Not fully baked yet

I have yet to include the options for the business version, but I expect to include that in the next release.

Running tests

This module is 100% test-driven. Please feel free to run the tests and critique them.

  1. Install io.js (needed for jsdom)
  2. git clone ...
  3. npm i
  4. npm test

Usage

This is a pure commonjs module with no production dependencies. I recommend using either webpack or browserify to build.

See the wiki for usage examples.

Documentation

API documentation can be found here.

Promises

This library leverages the ES6 promise implementation, which is currently available in most modern browsers. If you wish to use it with browsers that do not support the ES6 promise implementation, then I recommend using a polyfill.

Why?

I have intentionally limited the production dependencies of this module, so you are not forced to use a particular library.

async-google-maps's People

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.