I've not done it that way with a ui_template - I'm sure Google map's will need an API 'key' to be supplied.
If you do a search for 'google maps' on this forum you will see what other people have encountered.
I make use of this node to show a map on the Dashboard.
There is a lot of information on how to use this node in the following link.
Here's an example to display/plot a mark on the map.
Note: The properties used are 'lat' and 'lon' (whereas Google uses 'lat' and 'lng').
As an example of how this node can be used, I used the web-worldmap node to plot wildfires around the world on the Dashboard
Here's a direct link to the Tutorial mentioned in the above thread.
http://www.resources-area.co.uk/node-red-flows/wildfires/plotting_wildfires.pdf