zet-lib 3.0.2 → 3.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/moduleLib.js +1 -2
- package/package.json +1 -1
package/lib/moduleLib.js
CHANGED
|
@@ -147,9 +147,8 @@ m.location = function (req, res, key) {
|
|
|
147
147
|
let script = ``;
|
|
148
148
|
let head = ``;
|
|
149
149
|
let end = ``;
|
|
150
|
-
end
|
|
150
|
+
end += `<script src="https://maps.googleapis.com/maps/api/js?key=${process.env.GOOGLE_KEY}&callback=initAutocompleteZmap&libraries=places,marker&language=ID&loading=async" defer></script>`
|
|
151
151
|
script += `let searchAddressMap, autocompleteMap, marker, map;
|
|
152
|
-
|
|
153
152
|
function initAutocompleteZmap() {
|
|
154
153
|
if (mapLocationJSON && mapLocationJSON.lat) {
|
|
155
154
|
$("#search_map_location").val(mapLocationJSON.address1);
|