今天打开网站的时候出现了这个问题“百度未授权使用地图API, 可能是因为您提供的密钥不是有效的百度开放平台密钥或此密钥未对本应用的百度地图javasoriptAPI授权。....”经过研究终于知道什么原因了。原因是我没有百度授权的秘钥。只要像申请一个账号一样申请即可,然后添加百度地图相关服务,即可获得秘钥。
可通过以下步骤获得属于自己的秘钥
1、在百度搜索框中填入”百度地图api“回车,看到链接的首页,点击进入。
2、选择Javascrip API大众版
md5g6s5gMBgMxniDqTuDwWAwGOMNpu4MBoPBYIw3mLozGAwGgzHeYOrOYDAYDMZ4Y5i6x2a1fMvP6BEAAFj+ELD78FdJPYPxF2CoGVNK6Q/RqEcmwHaIwWAwHg97+bbY7vfv358wYcLEiRM//vjjpqYmRKSU/kUTYXlwAVAKdIxHme0ZKxEQrYGI3aP3L5AioJRIEqF03HZZbMVnyalNx8ZfVn8AhhonIdJ3Fq+tKoba3Jhh7KAyhBBCiETGb1tlMBhPzVOpu/UJptebb/WbtZLl4SISMNv9iBQAQBh+UP4RCFB7gR76++2pBTlNFMbsEDw9YH8Hu8SMt0emJT/2JWf9/6+UVWvHjkqSJIriqOpk/QREkkTpEQixbwAAQCRxKJgoSoQ8ofFtCSkaNR2NjR2DPHkqxRzRni0HR/z9jhgMPc1tvSodleOhxJp/YmG0JP11K5DBYDwHPJW6UypSRBSvXG12WNl0RC3g0zxY5EegNNCl14FNsIcZOZb/BVNxtfZgh1FCRGqu6TDIZ4mdTfPENx8zPahtvl5Ser1dJSIipePQHgKQuzBU2XrrbMmVXj3BJ7fd5eA2O/JJ+lqjdeQes3c3DPq91g4lEkXErvsHQn//+6Ct53kJEcmTebDkIpHd6sTYeL3kzPmKdp1ktbhH904hItF3lp8tu93QSxDBeD1xgntq3kUzIorSqEk1GvS8RtXV0lBz//aVqxV3W3lEpMx2ZzAYdjyl7S4BIko3qtr+flPRCbWIiLoBbllJr39pv/+Ffr8L/f4lfaur9ep+TeLZPkVJv++Fft8L/QGl/f4X+n3P94WXq5pNgAg9D3peTm+IvKu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