How to create a google maps custom component?

I am looking for a good sample on how to create a custom component with a google map embedded.

I want to use their javascript sdk, not the native one and while I am reasonably familiar with how to embedded google maps on a page, I am running into issues with the custom component not displaying anything.

Any pointer would be greatly appreciated.