Skip to content

Commit

Permalink
Remove ES5 arrow funcs
Browse files Browse the repository at this point in the history
  • Loading branch information
defvol committed May 6, 2016
1 parent 6978bdd commit 6ab42b2
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions mbview.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ module.exports = {

new MBTiles(config.mbtiles, function(err, tiles) {
if (err) throw err;
tiles.getInfo((err, data) => {
tiles.getInfo(function (err, data) {
if (err) throw err;
console.log('*** Metadata found in the MBTiles');
console.log(data);
Expand All @@ -34,14 +34,14 @@ module.exports = {
},

listen: function (config, tiles, onListen) {
app.get('/', (req, res) => {
app.get('/', function (req, res) {
res.render('map', config);
});

app.get('/debug/:z/:x/:y.pbf', (req, res) => {
app.get('/debug/:z/:x/:y.pbf', function (req, res) {
var p = req.params;
console.log('Serving', p.z + '/' + p.x + '/' + p.y);
tiles.getTile(p.z, p.x, p.y, (err, tile, headers) => {
tiles.getTile(p.z, p.x, p.y, function (err, tile, headers) {
if (err) {
console.error(err);
res.end();
Expand Down

0 comments on commit 6ab42b2

Please sign in to comment.