homebirdscomponents
Advanced tools
Comparing version 0.0.17 to 0.0.18
@@ -119,6 +119,6 @@ 'use strict'; | ||
async initMap() { | ||
if (!window['googleMapsLoader']) { | ||
window['googleMapsLoader'] = new Loader(this.apiKey); | ||
if (!globalThis['googleMapsLoader']) { | ||
globalThis['googleMapsLoader'] = new Loader(this.apiKey); | ||
} | ||
this.google = await window['googleMapsLoader'].load(); | ||
this.google = await globalThis['googleMapsLoader'].load(); | ||
let mapConfigOpts = { | ||
@@ -125,0 +125,0 @@ center: { lat: this.centerLat, lng: this.centerLon }, |
@@ -49,6 +49,6 @@ import { Component, h, Prop, Host, Element, State, Watch, Event } from '@stencil/core'; | ||
async initMap() { | ||
if (!window['googleMapsLoader']) { | ||
window['googleMapsLoader'] = new Loader(this.apiKey); | ||
if (!globalThis['googleMapsLoader']) { | ||
globalThis['googleMapsLoader'] = new Loader(this.apiKey); | ||
} | ||
this.google = await window['googleMapsLoader'].load(); | ||
this.google = await globalThis['googleMapsLoader'].load(); | ||
let mapConfigOpts = { | ||
@@ -55,0 +55,0 @@ center: { lat: this.centerLat, lng: this.centerLon }, |
@@ -118,6 +118,6 @@ import { attachShadow, createEvent, h, Host, proxyCustomElement } from '@stencil/core/internal/client'; | ||
async initMap() { | ||
if (!window['googleMapsLoader']) { | ||
window['googleMapsLoader'] = new Loader(this.apiKey); | ||
if (!globalThis['googleMapsLoader']) { | ||
globalThis['googleMapsLoader'] = new Loader(this.apiKey); | ||
} | ||
this.google = await window['googleMapsLoader'].load(); | ||
this.google = await globalThis['googleMapsLoader'].load(); | ||
let mapConfigOpts = { | ||
@@ -124,0 +124,0 @@ center: { lat: this.centerLat, lng: this.centerLon }, |
@@ -115,6 +115,6 @@ import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-33117609.js'; | ||
async initMap() { | ||
if (!window['googleMapsLoader']) { | ||
window['googleMapsLoader'] = new Loader(this.apiKey); | ||
if (!globalThis['googleMapsLoader']) { | ||
globalThis['googleMapsLoader'] = new Loader(this.apiKey); | ||
} | ||
this.google = await window['googleMapsLoader'].load(); | ||
this.google = await globalThis['googleMapsLoader'].load(); | ||
let mapConfigOpts = { | ||
@@ -121,0 +121,0 @@ center: { lat: this.centerLat, lng: this.centerLon }, |
@@ -1,1 +0,1 @@ | ||
import{p as e,b as a}from"./p-b09849de.js";(()=>{const a=import.meta.url,s={};return""!==a&&(s.resourcesUrl=new URL(".",a).href),e(s)})().then(e=>a([["p-4c8a6ff1",[[1,"ba-google-map",{apiKey:[1,"api-key"],centerLat:[2,"map-center-lat"],centerLon:[2,"map-center-lon"],zoom:[2,"map-zoom"],mapPins:[16],height:[1,"map-height"],disableControls:[4,"map-disable-controls"],google:[32],map:[32],markers:[32]}]]],["p-eb2e3571",[[1,"ba-search-input",{value:[1025],suggestions:[16],placeholder:[1],maxResultsShown:[2,"max-results"],searchTerms:[32],fuse:[32],results:[32],suggestionsPaneOpen:[32]},[[0,"blur","handleElementBlur"]]]]],["p-2c71d1dd",[[1,"ba-text-input-one",{type:[513],placeholder:[513],value:[1537]}]]]],e)); | ||
import{p as e,b as a}from"./p-b09849de.js";(()=>{const a=import.meta.url,s={};return""!==a&&(s.resourcesUrl=new URL(".",a).href),e(s)})().then(e=>a([["p-bae2be81",[[1,"ba-google-map",{apiKey:[1,"api-key"],centerLat:[2,"map-center-lat"],centerLon:[2,"map-center-lon"],zoom:[2,"map-zoom"],mapPins:[16],height:[1,"map-height"],disableControls:[4,"map-disable-controls"],google:[32],map:[32],markers:[32]}]]],["p-eb2e3571",[[1,"ba-search-input",{value:[1025],suggestions:[16],placeholder:[1],maxResultsShown:[2,"max-results"],searchTerms:[32],fuse:[32],results:[32],suggestionsPaneOpen:[32]},[[0,"blur","handleElementBlur"]]]]],["p-2c71d1dd",[[1,"ba-text-input-one",{type:[513],placeholder:[513],value:[1537]}]]]],e)); |
{ | ||
"name": "homebirdscomponents", | ||
"version": "0.0.17", | ||
"version": "0.0.18", | ||
"description": "Stencil Component Starter", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.cjs.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
503018