How to tell if an objects location is visible?

Anonymous
06-27-2004, 04:54 PM
Hi,

Does anyone know of a way to tell if an objects location is in the visible area of the map?

I can find the location of a PushPin so:-

Set objPin = objMap.FindPushpin(strPinName)
Set objLoc = objPin.Location

Now I want to know if that location is visible.

Thanks,

Chris

Anonymous
06-28-2004, 08:05 AM
I don't think there is anything that does this, maybe if you just store wherever your map is centered on as a pushpin location and then do use the QueryCircle with the something like half the Altitude as your radius

That would probably get you close, far from perfect though.

Anonymous
06-28-2004, 08:15 AM
This link tells you how to check the radius and altitude values against what is actually on screen, might help out some

http://support.microsoft.com/?kbid=297348

 
Web mp2kmag.com
mapforums.com