1/** 2 * @namespace WPGMZA 3 * @module GoogleModernStoreLocator 4 * @requires WPGMZA.ModernStoreLocator 5 */ 6jQuery(function($) { 7 8 WPGMZA.GoogleModernStoreLocator = function(map_id) { 9 var googleMap, self = this; 10 11 var map = this.map = WPGMZA.getMapByID(map_id); 12 13 WPGMZA.ModernStoreLocator.call(this, map_id); 14 15 var options = { 16 fields: ["name", "formatted_address"], 17 types: ["geocode"] 18 }; 19 var restrict = map.settings["wpgmza_store_locator_restrict"]; 20 21 this.addressInput = $(this.element).find(".addressInput, #addressInput")[0]; 22 23 if(this.addressInput) 24 { 25 if(restrict && restrict.length) 26 options.componentRestrictions = { 27 country: restrict 28 }; 29 30 /*this.autoComplete = new google.maps.places.Autocomplete( 31 this.addressInput, 32 options 33 );*/ 34 } 35 36 // Positioning for Google 37 this.map.googleMap.controls[google.maps.ControlPosition.TOP_CENTER].push(this.element); 38 } 39 40 WPGMZA.GoogleModernStoreLocator.prototype = Object.create(WPGMZA.ModernStoreLocator.prototype); 41 WPGMZA.GoogleModernStoreLocator.prototype.constructor = WPGMZA.GoogleModernStoreLocator; 42 43});
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.