A Yii2 input widget which provides a user-friendly interface for selecting geographical coordinates via Google maps. Allows users to select geographical coordinates by clicking on an interative Google map embedded into your web-page. Also allows users to type in a place name to search for it via Google Places API.
You have to check if the actual connection is secure or not.
Like this:
$scriptUrl = "http".(Yii::$app->request->isSecureConnection ? 's': '')."://maps.googleapis.com/maps/api/js?";