Changing api endpoint from http to https?
-
I encountered an issue with Google Maps today, where maps from elsewhere overlay over the location on the map at different zoom areas. You can see this on the Google maps API demo, at least as of writing this
http://www.morethanamap.com/demos/basemaps/new-york
I’m not sure if it’s the result of an update, or if it’s related to Google image search being hacked, but I found that the solution was to change the API endpoint from http to https. With the plugin, this would be on line 16 of ApiClient.php:
const API_END_POINT = ‘http://maps.googleapis.com/maps/api/’;
This isn’t a problem on most sites I’ve needed to change this on, but one of them uses this plugin. It would be simple to add the s myself, but I don’t want to do this, to avoid issues if the plugin gets updated down the road and gets overwritten.
Would an update that either adds the s or give you the option to be possible? Or if anyone has a workaround that allows me to change the endpoint constant from outside of the class, it would be most appreciated.
The topic ‘Changing api endpoint from http to https?’ is closed to new replies.