Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
local config file for changing source of gaia topo
exports.LocalConfig = function (localizer, project) {
var mode = process.env.SOURCE_OVERRIDE;
if(mode == "local_composite") {
project.mml.source[0] = {
protocol: "http:",
tilejson: "http://localhost:8080/meters/index.json"
} else if(mode == "local_source") {
project.mml.source[0] = {
protocol: "tmsource:",
path: "/Users/jesse/projects/tm2-projects-private/gaia_topo.tm2source/"
console.log("Style source config:" + JSON.stringify(project.mml.source[0]));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment