The method used in the thread you shared is from 2016. More likely than not, Google’s API has changed and they require a different way to intereact with maps.
Can you please share a read-only for your project?
Hey Jean! Thanks for the reply. You were kinda right I think, I have found the latest Google documentation and implemented it, so with trial and error I have successfully implemented CMS map. Thanks a lot!