Obtain the Baidu map key and map key
Today, when I opened my website, this problem occurs: "Baidu is not authorized to use the map API, it may be because the key you provided is not a valid Baidu Open Platform key or this key is not authorized to the Baidu map JavasoriptAPI of this application ....." After research, I finally learned why. The reason is:I do not have a Baidu-authorized key. You only need to apply for an account, and then add Baidu map services to obtain the key.
To obtain your own key, follow these steps:
1. Enter "Baidu map api" in the baidu search box and press Enter. The home page of the link is displayed. Click to enter.
2. Select Javascrip API public Edition
3. After entering, you can see this "apply for key" and click to enter.
4. If you have not yet registered an api account for Baidu map, click here to go to the interface. Click "api console" in the upper-right corner To Go To The registration page. After registration, click Apply for a key.
5. Click Apply for a key and you will be directed to this page. You can click "create application" in "My applications" on the right menu bar to create your own accesskey, enter the name as needed. If you do not want to add the name to the White List, enter the ip address. If you wantAccessible to all websitesYou must enter (0.0.0.0/0) as prompted ).
6. Get the key you want