diff --git a/resources/js/plugin.js b/resources/js/plugin.js index 6a0d82d..b87aac4 100644 --- a/resources/js/plugin.js +++ b/resources/js/plugin.js @@ -68,10 +68,7 @@ var GoogleMaps = { } var defaultMapOptions = { - center: new google.maps.LatLng( - (options.lat ? options.lat : 0), - (options.lng ? options.lng : 0) - ), + center: new google.maps.LatLng(0,0), zoom: 10 }; @@ -91,7 +88,7 @@ var GoogleMaps = { this.base(options); - this.options = _.extend({}, defaultMapOptions, this.options); + this.options = _.extend({}, defaultMapOptions, options); this.api = new google.maps.Map(node, this.options); @@ -1856,4 +1853,4 @@ var GoogleMaps = { }); -}()); \ No newline at end of file +}());