slick-google-map-plugin icon indicating copy to clipboard operation
slick-google-map-plugin copied to clipboard

Google API requirement?

Open simonduz opened this issue 9 years ago • 2 comments

I don't see anywhere to enter my API key? Without this the maps do not work.

simonduz avatar Sep 11 '16 11:09 simonduz

I m having the same problem.

Fatal :: No markers specified for the Google map.. maps.googleapis.com/maps-api-v3/api/js/25/14/util.js:210 Google Maps API warning: NoApiKeys https://developers.google.com/maps/documentation/javascript/error-messages#no-api-keys maps.googleapis.com/maps-api-v3/api/js/25/14/util.js:210 Google Maps API warning: SensorNotRequired https://developers.google.com/maps/documentation/javascript/error-messages#sensor-not-required

moltra avatar Oct 06 '16 01:10 moltra

Here is a temporary workaround until there is a true fix: Edit the file wp-content/plugins/slick-google-map/assets/js/sgmp.framework.js At around line 1436 you will see the string value for other_params. This is where you can add your Google Maps API key.

other_params: 'key=YOUR_API_KEY&sensor=false&libraries=panoramio&language=' + SGMPGlobal.language,

Save the changes to sgmp.framework.js and then use it to create the minified version sgmp.framework.min.js

gdyee avatar Nov 12 '17 19:11 gdyee