How can I have this type of
marker in the map
This is certainly possible, but I do think this is something that requires some custom code as I have done in the past.
Can you share it?
What you will need is to assign your google maps an ID and communicate with it via this id. Afterwards you can execute certain functions on it to manipulate the map.
The link below shows more documentation: