From d44b2db551238ff771753e262c8f12e7338a371c Mon Sep 17 00:00:00 2001 From: Raul Ochoa Date: Tue, 9 Dec 2014 17:59:59 +0100 Subject: [PATCH] Expose public interfaces --- lib/torque/index.js | 21 ++++++++++++++++----- 1 file changed, 16 insertions(+), 5 deletions(-) diff --git a/lib/torque/index.js b/lib/torque/index.js index 4f75db5..f7637c2 100644 --- a/lib/torque/index.js +++ b/lib/torque/index.js @@ -1,6 +1,17 @@ +module.exports = require('./core'); -if (typeof module !== "undefined") { - module.exports = { - cartocss_reference: require('./cartocss_reference').torque['torque-reference'] - }; -} +module.exports.Animator = require('./animator'); +module.exports.cartocss_reference = require('./cartocss_reference'); +module.exports.common = require('./common'); +module.exports.math = require('./math'); +module.exports.Mercator = require('./mercator'); +module.exports.net = require('./request'); +module.exports.renderer = require('./renderer'); +module.exports.providers = require('./provider'); + +require('./leaflet'); + +var gmaps = require('./gmaps'); +module.exports.GMapsTileLoader = gmaps.GMapsTileLoader; +module.exports.GMapsTiledTorqueLayer = gmaps.GMapsTiledTorqueLayer; +module.exports.GMapsTiledTorqueLayer = gmaps.GMapsTiledTorqueLayer;