src/utils/load-google-maps.js
/**
     * CreateUrl returns the Google Maps JavaScript API script url given the [[LoaderOptions]].
     *
     * @ignore
     */
CreateUrl returns the Google Maps JavaScript API script url given the [[LoaderOptions]].
@ignore
CreateUrl returns the Google Maps JavaScript API script url given the [[ LoaderOptions ]] . @ignore
createUrl() {
        let url = this.URL;
        console.log(this.URL)
        url += `?callback=${this.CALLBACK}`;
        if (this.apiKey) {
            url += `&key=${this.apiKey}`;
        }
        if (this.libraries.length > 0) {
            url += `&libraries=${this.libraries.join(",")}`;
        }
        if (this.language) {
            url += `&language=${this.language}`;
        }
        if (this.region) {
            url += `&region=${this.region}`;
        }
        if (this.version) {
            url += `&v=${this.version}`;
        }
        if (this.mapIds) {
            url += `&map_ids=${this.mapIds.join(",")}`;
        }
        return url;
    }
createUrl ( ) { let url = this . URL ; console . log ( this . URL ) url += ` ${ this . CALLBACK } ` ; if ( this . apiKey ) { url += ` ${ this . apiKey } ` ; } if ( this . libraries . length > 0 ) { url += ` ${ this . libraries . join ( "," ) } ` ; } if ( this . language ) { url += ` ${ this . language } ` ; } if ( this . region ) { url += ` ${ this . region } ` ; } if ( this . version ) { url += ` ${ this . version } ` ; } if ( this . mapIds ) { url += ` ${ this . mapIds . join ( "," ) } ` ; } return url ; }
CreateUrl returns the Google Maps JavaScript API script url given the [[LoaderOptions]].
CreateUrl returns the Google Maps JavaScript API script url given the [[ LoaderOptions ]] .