Integrate Google map API with AEM | Community
Skip to main content
New Participant
October 20, 2022
Solved

Integrate Google map API with AEM

  • October 20, 2022
  • 3 replies
  • 2151 views

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.
Best answer by smahesh

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
October 21, 2022
Mayank_Gandhi
Employee
October 20, 2022

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

smaheshAccepted solution
New Participant
October 20, 2022

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