How to use the geojs.include function in geojs

To help you get started, we’ve selected a few geojs examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github steelmesh / steelmesh / lib / extensions / geo / wfs.js View on Github external
var GeoJS = require('geojs').include('filters');

exports.filter = function(stack, callback, queryParams, req, res) {
    console.log(queryParams.filter);
}; // filter

exports.makeRequest = function(params, filter) {
    // ensure output format and version have default values
    params.version = params.version || '1.1.0';
    params.outputFormat = params.outputFormat || (params.version === '1.0.0' ? 'GML2' : 'GML3');
    
    if (params.kvp) {
        return 'service=' + params.service + '&' + 
            'request=' + params.request + '&' + 
            'Typename=' + params.dataset + '&' + 
            'version=' + params.version + '&' + 
            'maxFeatures=' + params.maxFeatures + '&' +