How to use google maps without api key

前端 未结 5 1541
失恋的感觉
失恋的感觉 2020-12-13 10:07

Hi i am using this code to use get-directions in google maps. but when i run this from other machines it is showing the error invalid api key. how to use this same map witho

5条回答
  •  春和景丽
    2020-12-13 10:47

    Note : This answer is now out-of-date. You are now required to have an API key to use google maps. Read More

    you need to change your API from V2 to V3, Since Google Map Version 3 don't required API Key

    Check this out..

    write your script as

    
    

提交回复
热议问题