Web forum is in read-only mode. Login as active registered customer for write access
  Forum Search   New Posts New Posts

X/Y position of markers

 Post Reply Post Reply
Author
Helge Lange View Drop Down
Member
Member
Avatar

Joined: 18 Jun 2015
Posts: 81
Post Options Post Options   Quote Helge Lange Quote  Post ReplyReply Direct Link To This Post Topic: X/Y position of markers
    Posted: 18 Jun 2015 at 4:19pm
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...
Back to Top
Helge Lange View Drop Down
Member
Member
Avatar

Joined: 18 Jun 2015
Posts: 81
Post Options Post Options   Quote Helge Lange Quote  Post ReplyReply Direct Link To This Post Posted: 23 Jun 2015 at 10:09pm
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
Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down