rvalitov / widgetkit-map-ex

Responsive version of Yootheme's Map Widget (Widgetkit2) with center map point and advanced features
GNU General Public License v3.0
22 stars 3 forks source link

Widgetkit Map - Server Key for Google Maps API is not working #59

Closed rvalitov closed 7 years ago

rvalitov commented 7 years ago

In the Wiki we have instructions that you should obtain Browser key for the Google Maps API. But in the console you have different types of keys available. On of them that looks attractive is the Server key. The difference is that browser key restricts access by domain, and server key restricts access by IP address. You may think that server key can be useful when all your websites are hosted on the same server. However, I have bad news for you. Server key doesn't work for Google Maps API at all! When you select the type of key, Google doesn't check if it's compatible with the specific Google API. So, you can create a key that will be incompatible or invalid for the Google Maps API. Each API has a predefined type of key which is accepted. This list you can find the answer to the question "What keys or credentials should I use for different Maps products?" in the FAQ section of Google's documentation. For Google Maps you can use only the API key with browser restriction. I include the screenshot here:

google-api-key