Integrate Google map API with AEM | Community
Skip to main content
Level 2
Oct 20, 2022 4:14 PM UTC
Solved

Integrate Google map API with AEM

I am trying to Integrate google map API in clientlib 

whenever I am trying to add external library of google API in script tag, I am getting error,
Uncaught SyntaxError: Unexpected token '<'

<script type="text/javascript" src="https://maps.google.com/maps/api/js"></script>

 

Any suggestions or any reference article  on how to integrate the google map API in AEM?

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
smaheshAccepted solution
Level 3
Oct 20, 2022 7:02 PM UTC

Hi Kajalinamdarey

 

Please follow this article it has detailed explanation on integrating Google map API with aem :

 

https://aem4beginner.blogspot.com/integration-of-google-map-apis

 

Hope this helps.

Thanks,

Mahesh 

 

 

 

 

 

 

3 replies

arunpatidar
New Participant
Oct 21, 2022 7:21 AM UTC
Mayank_Gandhi
Employee
Oct 20, 2022 8:10 PM UTC

@kajali copy the google api js to a file in the client libs. It will load along with other js.

Translate
smaheshAccepted solution
Level 3
Oct 20, 2022 7:02 PM UTC

Hi Kajalinamdarey

 

Please follow this article it has detailed explanation on integrating Google map API with aem :

 

https://aem4beginner.blogspot.com/integration-of-google-map-apis

 

Hope this helps.

Thanks,

Mahesh 

 

 

 

 

 

 

Translate