How to I create a custom shape/polygon location in the map?
You can create your own custom location marker on the map. Here is how:

1) Once you have the SVG path. Go to the "Code" tab and add the following code with your custom shape path:
custom_shapes: {
heart: "Your_SVG_PATH"
},

2) Go to your locations and input the name of your shape as the marker type.
custom_shapes: {
heart: "Your_SVG_PATH"
},

2) Go to your locations and input the name of your shape as the marker type.

Here is more information about general settings: