Locator
html,
body {
height: 100%;
margin: 0;
}gmpx-store-locator {
width: 100%;
height: 100%;/* These parameters customize the appearance of Locator Plus. See the documentation at
https://github.com/googlemaps/extended-component-library/blob/main/src/store_locator/README.md
for more information. */
–gmpx-color-surface: #fff;
–gmpx-color-on-surface: #212121;
–gmpx-color-on-surface-variant: #757575;
–gmpx-color-primary: #1967d2;
–gmpx-color-outline: #e0e0e0;
–gmpx-fixed-panel-width-row-layout: 28.5em;
–gmpx-fixed-panel-height-column-layout: 65%;
–gmpx-font-family-base: “Roboto”, sans-serif;
–gmpx-font-family-headings: “Roboto”, sans-serif;
–gmpx-font-size-base: 0.875rem;
–gmpx-hours-color-open: #188038;
–gmpx-hours-color-closed: #d50000;
–gmpx-rating-color: #ffb300;
–gmpx-rating-color-empty: #e0e0e0;
}
const CONFIGURATION = {
“locations”: [
{“title”:”Builders Roof Yamnampet, Hyderabad”,”address1″:”plot no 58, Rampally”,”address2″:”Nagaram, Telangana, India”,”coords”:{“lat”:17.4923606,”lng”:78.6134107},”placeId”:”ChIJH0RhSzGdyzsR8Ud6YCyfsM0″},
{“title”:”Builders Roof Athmakur(M) :Tiles wholesaler, Building Material, Construction Material Hyderabad”,”address1″:”Athmakur (M)”,”address2″:”Yadadri, Telangana, India”,”coords”:{“lat”:17.470483,”lng”:79.1394418},”placeId”:”ChIJz7r2_C9FyzsRYc54H8gnPzY”},
{“title”:”Builders Roof Hyathnagar :Tiles wholesaler, Building Material, Construction Material Hyderabad”,”address1″:”Plot # 44, Road # 5, R.T.C Colony”,”address2″:”Hayathnagar, Telangana, India”,”coords”:{“lat”:17.3300273,”lng”:78.6003839},”placeId”:”ChIJH6uz-W-hyzsRf-iyFBx0AFw”},
{“title”:”Builders Roof Buvanagiri :Tiles wholesaler, Building Material, Construction Material Hyderabad”,”address1″:”Bhuvanagiri”,”address2″:”Bhuvanagiri, Telangana, India”,”coords”:{“lat”:17.4956336,”lng”:78.893861},”placeId”:”ChIJvUQXDcFvyzsRQw_EcJbTkmI”},
{“title”:”Builders Roof Valigonda :Tiles wholesaler, Building Material, Construction Material Hyderabad”,”address1″:”Valigonda”,”address2″:”Valigonda, Telangana, India”,”coords”:{“lat”:17.3824893,”lng”:79.0042428},”placeId”:”ChIJZSG5uslByzsRoBCvhOvsAS0″}
],
“mapOptions”: {“center”:{“lat”:38.0,”lng”:-100.0},”fullscreenControl”:true,”mapTypeControl”:false,”streetViewControl”:false,”zoom”:4,”zoomControl”:true,”maxZoom”:17,”mapId”:””},
“mapsApiKey”: “YOUR_API_KEY_HERE”,
“capabilities”: {“input”:true,”autocomplete”:true,”directions”:false,”distanceMatrix”:true,”details”:false,”actions”:false}
};
document.addEventListener(‘DOMContentLoaded’, async () => {
await customElements.whenDefined(‘gmpx-store-locator’);
const locator = document.querySelector(‘gmpx-store-locator’);
locator.configureFromQuickBuilder(CONFIGURATION);
});