Home > front end >  Scott JS calls normal maps API access to administrative data retrieval and the key normal lack acces
Scott JS calls normal maps API access to administrative data retrieval and the key normal lack acces

Time:04-26

 
//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 key

CodePudding 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 right

CodePudding user response:

You have a look at your key service platform is what kind, I was using a web side

CodePudding user response:

Have a solution? B: and I have similar problems
  • Related