var W2GI = { config: { appkey: 'D1A3CDF0-E43F-11E7-977E-87C8F48ECC77', autoStart: true, pageObserve : ['linktrack'], locator: { theme:null, noZoomOnPan: true, noDynamicFilters: true, formdata: { geoip: true, order: '_DISTANCE', dataview: 'store_default', limit: 5, atleast: 2, geolocs: { geoloc: [{ addressline: '', country: '', latitude: '', longitude: '' }] }, searchradius: '200', where: { or: { classic: { eq: '' }, studio_1904: { eq: '' }, nouveau: { eq: '' }, artisan: { eq: '' }, mpp : { eq : '' }, elements_collection: { eq: '' } } } }, drivingdirections: { disableDynamicRoutes: false, route: { distanceuom: 'mi' }, formdata: { dataview: 'store_default', geolocs: { geoloc: [{ address1: '', city: '', state: '', province: '', postalcode: '', addressline: '', country: '', latitude: '', longitude: '' }] } } }, imgPath: 'images/zoombar/', controls: [{ name: 'zoom', options: {} }], dynamicSearch: false, centerSelectedLocation: true, routeStyle: { strokeWidth: 8, strokeOpacity: .5, strokeColor: '#0000FF' }, //OpenLayers.ImgPath:'images/map_controls/', sources: [ { name: 'SlippyMap W2GI', imageurl: '//st1.slippymap.com/tiles, //st2.slippymap.com/tiles', options: { map: 'smap-01' } }, { name: 'SlippyMap Navteq', imageurl: '//st1.slippymap.com/tiles, //st2.slippymap.com/tiles', options: { map: 'smap-02' } } ] } } }; var loc_formdata_distance = { geoip: true, order: '_DISTANCE', dataview: 'store_default', limit: 5, atleast: 2, geolocs: { geoloc: [{ addressline: '', country: '', latitude: '', longitude: '' }] }, searchradius: '200', where: { or: { classic: { eq: '' }, studio_1904: { eq: '' }, nouveau: { eq: '' }, artisan: { eq: '' }, mpp: { eq: '' } } } }; var loc_formdata_rating = { order: 'STARRATING DESC,_DISTANCE', dataview: 'store_default', limit: 5, atleast: 2, geolocs: { geoloc: [{ addressline: '', country: '', latitude: '', longitude: '' }] }, searchradius: '200', where: { or: { classic: { eq: '' }, studio_1904: { eq: '' }, nouveau: { eq: '' }, artisan: { eq: '' }, mpp : { eq : '' } } } }; var loc_formdata_viewtotal = { order: 'VIEWTOTAL DESC,_DISTANCE', dataview: 'store_default', limit: 5, atleast: 2, geolocs: { geoloc: [{ addressline: '', country: '', latitude: '', longitude: '' }] }, searchradius: '200', where: { or: { classic: { eq: '' }, studio_1904: { eq: '' }, nouveau: { eq: '' }, artisan: { eq: '' }, mpp : { eq : '' } } } }; function sortbyRating(){ moreless.sortBy = 'starrating'; moreless.sortMode = 'desc'; moreless.includeSearchResult = false; loc_formdata_distance.geolocs.geoloc[0].addressline = document.getElementById("inputaddress").value; moreless.locatorOptions.order='_DISTANCE'; $(document).trigger("w2gi:proximitysearchrequest", loc_formdata_distance); } function sortbyViewTotal(){ moreless.sortBy = 'viewtotal'; moreless.sortMode = 'desc'; moreless.includeSearchResult = false; loc_formdata_distance.geolocs.geoloc[0].addressline = document.getElementById("inputaddress").value; moreless.locatorOptions.order='_DISTANCE'; $(document).trigger("w2gi:proximitysearchrequest", loc_formdata_distance); } function sortbyDistance(){ moreless.sortBy = '_distance'; moreless.sortMode = 'asc'; moreless.includeSearchResult = false; loc_formdata_distance.geolocs.geoloc[0].addressline = document.getElementById("inputaddress").value; moreless.locatorOptions.order='_DISTANCE'; $(document).trigger("w2gi:proximitysearchrequest", loc_formdata_distance); }

Store Locator