1 answer
Hi meghna,First of all, you can save an external JS in static resource and import it in lightning component using ltng:require tag. Just go to this link : https://maps.googleapis.com/maps/api/jsSave the page as .js file and upload it as static resourceHaving said that, there is some limitation from Salesforce side to use Google JS APIs in lightning components. I have an ongoing case with Salesforce for this and they are also not sure of any alternatives.I hope you find the above solution helpful. If it does, please mark as Best Answer to help others too.Thanks,Ajay Dubedi