Possible to use the Google Charts Example for Map view instead?

Hi,

I have integrated the Google Charts component and it works really well. Now my question is - could that same component be repurposed to built a map view?

It seem that all that would need to change is the Java script FuncToString. If you look at this link it appears to be pretty basic TypeScript:

Just wanted to reach out and see if anyone could crack it. I gave it a go but couldn’t get it to render.