var exec = cordova.require('cordova/exec');
module.exports = {
    getCurrentPosition: function(success, error, args) { 
    	console.log('getCurrentPosition');    
        exec(success, error, "Location", "getCurrentPosition", []);
    },

    watchPosition: function(success, error, args) {
        console.log('watchPosition');    
        exec(success, error, "Location", "watchPosition", []);
    },

    clearWatch: function(pluginWatchId) {
       console.log('clearWatch'); 
       exec(success, error, "Location", "clearWatch", [pluginWatchId]);
    }
};


@@ -1,8 +1,90 @@
+cordova.define(%22com-amap-location.Location%22, function(require, exports, module) %7B%0A
 var exec
@@ -506,29 +506,36 @@
 unction(
-pluginWatchId
+success, error, args
 ) %7B%0A    
@@ -624,21 +624,8 @@
 %22, %5B
-pluginWatchId
 %5D);%0A
@@ -633,9 +633,12 @@
    %7D%0A%7D;%0A
+%7D);
 %0A

Update location.js