Skip to content

Instantly share code, notes, and snippets.

@zpratt
Created March 29, 2015 06:33
Show Gist options
  • Save zpratt/8c274163e6db89ec1b3f to your computer and use it in GitHub Desktop.
Save zpratt/8c274163e6db89ec1b3f to your computer and use it in GitHub Desktop.
Custom Overlay Factory
'use strict';
var BaseOverlay = require('./base-overlay');
module.exports = {
create: function (options) {
var overlayInstance = new BaseOverlay(options);
overlayInstance.setMap(options.map);
}
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment