var util = require('util');
var MapStoreMapConfigProvider = require('./mapstore_mapconfig_provider');

function DummyMapConfigProvider(mapConfig, params) {
    if (!(this instanceof DummyMapConfigProvider)) {
        return new DummyMapConfigProvider(mapConfig, params);
    }

    MapStoreMapConfigProvider.call(this, undefined, params);

    this.mapConfig = mapConfig;
}

util.inherits(DummyMapConfigProvider, MapStoreMapConfigProvider);

module.exports = DummyMapConfigProvider;

DummyMapConfigProvider.prototype.getMapConfig = function(callback) {
    return callback(null, this.mapConfig, this.params, {});
};

var util = require('util');
var MapStoreMapConfigProvider = require('./mapstore_mapconfig_provider');

function DummyMapConfigProvider(mapConfig, params) {
    MapStoreMapConfigProvider.call(this, undefined, params);

    this.mapConfig = mapConfig;
}

util.inherits(DummyMapConfigProvider, MapStoreMapConfigProvider);

module.exports = DummyMapConfigProvider;

DummyMapConfigProvider.prototype.getMapConfig = function(callback) {
    return callback(null, this.mapConfig, this.params, {});
};

Remove instance check as it's an internal class and have full control
Remove instance check as it's an internal class and have full control
