Skip to main content The Trailblazer Community will be unavailable from 2/1/2025 to 2/2/2025. Please plan your activities accordingly.
Hi Team,

 

I am using Google Maps in one object. But suddenly it's not working. Getting error "initMap is not a function", name: "InvalidValueError", stack: "Error↵".

Do you guys know about this error?

 

Thanks,
2 answers
  1. Jul 31, 2020, 9:07 AM
    Google Maps work in Lightning web components. To get Google Maps to work in lightning web components we will need to implement maps in visualforce page and embed in lightning web components as iFrame. One library that locker service team opened in locker service is window.postMessage. This allows lightning web components to send/receive messages to/from visualforce pages. We could use this library and implement Google maps.

    GetOnCRM Solutions

    https://getoncrm.com/
Loading
0/9000