Nodetiles-MongoDB is a data source for Nodetiles that allows you to load and render geographic data from a Mongo database
/* Set up the libraries */
var nodetiles = require('nodetiles-core');
var MongoDataSource = require('nodetiles-mongodb');
/* Create your map context */
var map = new nodetiles.Map();
/* Add some data from Mongo! */
map.addData(new MongoDataSource({
connectionString: "mongoose",
tableName: "countries",
geomField: "wkb_geometry",
projection: "EPSG:900913"
}));
Copyright (c) 2012-2013 LocalData. See LICENSE for details.