X/Y position of markers

Hi TMS.


I have 2 markers dropped on a map. I need to make sure that both markers are visible with the current zoom level or zoom out / pan map to a different location if not.

Let's say my map control has the size of 400x400. Can I get X/Y positions of the marker at the current zoom level ? That for ex. tells me : MarkerX -25, 200 and I know, ok, that's outside the box, I zoom out and check again...

Thanks in advance...

Found a solution from where I can start working : 

The map has a function GetMapBounds, which gives me in an event the bounds infos for the currently visible map. 
Explained here :
https://www.tmssoftware.com/site/tips.asp?s=faq&show=588