From 0ba746b81699d3036a65e5508a602d83a0cebdc9 Mon Sep 17 00:00:00 2001 From: Tim Endres Date: Thu, 14 Jun 2018 01:49:14 +0700 Subject: [PATCH] Remove reference to the global 'google' object in locationpicker.defaults to fix problem with 'google not defined' error when using 'async defer' to load the google maps script. --- src/locationpicker.jquery.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/locationpicker.jquery.js b/src/locationpicker.jquery.js index 9c613ae..5199562 100644 --- a/src/locationpicker.jquery.js +++ b/src/locationpicker.jquery.js @@ -436,7 +436,7 @@ locationName: "", radius: 500, zoom: 15, - mapTypeId: google.maps.MapTypeId.ROADMAP, + mapTypeId: 'roadmap', styles: [], mapOptions: {}, scrollwheel: true,