//access to information administrative region
AMap. The plugin (' AMap. DistrictSearch ', function () {
Var districtSearch=new AMap. DistrictSearch ({
//keyword corresponding administrative levels, the country said countries
Level: 'country',
//show the lower administrative region series, 1 said to return to the next level administrative region
Subdistrict: 1
})
//search all provinces/municipalities directly under the central government information
DistrictSearch. Search (' China ', function (the status, the result) {
//query is successful, the result is the corresponding administrative region information
The console. The log (status);
})
})
The status always no_data
CodePudding user response:
Is application developers to account the wrong keyCodePudding user response:
The key of the result is such, The key is wrong will always for no_data status
CodePudding user response:
CodePudding user response:
The key is rightCodePudding user response:
You have a look at your key service platform is what kind, I was using a web sideCodePudding user response:
Have a solution? B: and I have similar problems