|
|
@@ -15,6 +15,7 @@
|
|
|
<input type="hidden" name="__name___street" value="__street__" />
|
|
|
<input type="hidden" name="__name___street_number" value="__street_number__" />
|
|
|
|
|
|
+<script language="javascript" type="text/javascript" src="https://maps.google.com/maps/api/js?libraries=places&language=__lang__&key=__key__"></script>
|
|
|
<script>
|
|
|
|
|
|
var oBxLocationHashMap = {
|
|
|
@@ -120,8 +121,7 @@
|
|
|
}
|
|
|
});
|
|
|
|
|
|
-
|
|
|
- $(document).ready(function () {
|
|
|
+ var fInitCallback = function () {
|
|
|
|
|
|
var callbackFillInAddress = function () {
|
|
|
// Get the place details from the autocomplete object.
|
|
|
@@ -153,6 +153,13 @@
|
|
|
glBxAutocomplete__name__.addListener('place_changed', callbackFillInAddress);
|
|
|
}
|
|
|
|
|
|
+ }
|
|
|
+
|
|
|
+ $(document).ready(function () {
|
|
|
+ if ('undefined' === typeof(google))
|
|
|
+ bx_get_scripts(['https://maps.google.com/maps/api/js?libraries=places&language=__lang__&key=__key__'], fInitCallback);
|
|
|
+ else
|
|
|
+ fInitCallback();
|
|
|
});
|
|
|
|
|
|
</script>
|