Using google maps without API Keys?

后端 未结 6 2061
时光取名叫无心
时光取名叫无心 2020-12-11 16:01

I am developing a CMS that will use more than one domain and I have to use only one google map script in my page.

Is there a way to use google maps without API key?<

6条回答
  •  佛祖请我去吃肉
    2020-12-11 16:51

    This is possible with any version of the Google Maps API, as described here. Basically the only thing the map actually does if used without a key is display an alert complaining about it. If you trap the alert and prevent it from being displayed, the map will function as normal.

    Example here: http://codethink.no-ip.org/mapHacks.html

提交回复
热议问题