Overlaying Icons on Google Maps

So, I am wanting to overlay an icon or shape onto google maps, then save it to that user, so when they come back, they can see what they previously placed.

So let’s take this map for example. I want to draw a line onto the maps, from location a to b. I would click the first icon on the top left. It would bring up a line tool and I could click on one end, go to the second and click again to draw a straight line from the two points.

Then I want to add a pin drop, or another little icon like that, I would hit one of the next 3 icons to add that shape where I click.

Is there any way to do that? Free or paid solutions are fine. Thanks in advance.

You can do this with the native bubble map element

Instead of Upload custom option for “customized icon” select, “data dependent”