Home >Web Front-end >HTML Tutorial >Obtain Baidu map secret key ak_html/css_WEB-ITnose

Obtain Baidu map secret key ak_html/css_WEB-ITnose

WBOY
WBOYOriginal
2016-06-24 11:40:251415browse

This problem occurred when I opened the website today. "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 the key is not valid for this application. Baidu Map JavasoriptAPI authorization. ..." After research, I finally found out the reason. The reason is I don’t have a Baidu authorized key. Just apply as you would for an account, and then add Baidu Map-related services to get the secret key.

You can obtain your own secret key through the following steps

1. Fill in "Baidu map api" in the Baidu search box and press Enter to see the home page of the link , click to enter.

2. Select the Javascrip API public version

3. You can see this after entering Click "Apply Key" to enter.

4. If you have not registered a Baidu Map API account, click to enter this interface. At this time, you click on the "api console" in the upper right corner to enter, and it will jump to the registration page. After completing the registration, click Apply for Key.

5. After clicking Apply for a Key, you will jump to this page. Click on the menu bar on the right In "Create Application" in "My Application", you can create your own ak at this time. You can fill in the name as you like. If you don't want to join the whitelist, you can fill in the IP. If you want all websites can If you visit , you have to fill in the prompts (0.0.0.0/0).

6. Get the secret key you want

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn