export interface ScriptMap { [ key ] : string ; } export function getScriptMap ( secure ? ) { const apiVersion = "v3" ; const codeVersion = "3.0" ; let protocol = "" ; if ( secure === true ) { protocol = "https:" ; } const baseUrl = `${ protocol }//js.api.here.com/` + `${ apiVersion }/${ codeVersion }` ; const coreScript = `${ baseUrl }/mapsjs-core.js` ; const serviceScript = `${ baseUrl }/mapsjs-service.js` ; const uiScript = `${ baseUrl }/mapsjs-ui.js` ; const mapEventsScript = `${ baseUrl }/mapsjs-mapevents.js` ; return { coreScript , mapEventsScript , serviceScript , uiScript , } ; } export default getScriptMap ;