= require('../helpers/geojson'); var jsonp = require('../helpers/jsonp'); var settings = require('../settings'); module.exports.controller = function(app) { /* enable CORS */ app.all('*', function(req, res, next) { res.header('Access‐Control‐Allow‐Origin', '*'); res.header('Access‐Control‐Allow‐Headers', 'X‐Requested‐With'); next(); }); app.get('/vector/:schema/:table/:geom/intersect', function(req, res, next) { var queryshape = ' {"type": "Point", "coordinates": [' + req.query['lng'] + ',' + req.query[ var geom = req.params.geom.toLowerCase(); if ((geom != 'features') && (geom != 'geometry') && (geom != 'all')) {