Hi Saurabh Sengar,
It is not possible to understand what you want to do, can you share an image of what you are trying to do, could it even be a mockup? or even better if an oml demo is possible.
What other api are you using?
In particular if I would have that requirement, I would first do it with javascript and html using visual code together with the Google maps library.
Once working, I would migrate it and make it reusable in outsystems and implement it in a project.
I hope it helps you in something.
Greetings.