var exec = require('cordova/exec');

var nativemap = {

    startMap : function(center,iconList,route,successCallback, failureCallback) {
        exec(successCallback, failureCallback, 'nativemap', 'startMap', [center,iconList,route]);
    }
    
    getCacheSize: function(successCallback, failureCallback) {
        exec(successCallback, failureCallback, 'nativemap', 'getCacheSize', []);
    }

    clearCache: function(successCallback, failureCallback) {
        exec(successCallback, failureCallback, 'nativemap', 'clearCache', []);
    }
}


module.exports = nativemap;
var exec = require('cordova/exec');

var nativemap = {

    startMap : function(center,iconList,route,successCallback, failureCallback) {
        exec(successCallback, failureCallback, 'nativemap', 'startMap', [center,iconList,route]);
    },
    
    getCacheSize: function(successCallback, failureCallback) {
        exec(successCallback, failureCallback, 'nativemap', 'getCacheSize', []);
    },

    clearCache: function(successCallback, failureCallback) {
        exec(successCallback, failureCallback, 'nativemap', 'clearCache', []);
    }
}


module.exports = nativemap;
fix error js