Find Object on the screen

Jun 2, 2010 at 10:29 AM
Hi, How can I find object on the screen? Thanks.
Coordinator
Jun 2, 2010 at 2:42 PM

?

Jun 2, 2010 at 2:52 PM
Hi again, I want to find objects that appear on the map screen.
Coordinator
Jun 2, 2010 at 2:57 PM

again, what do you mean?

Jun 2, 2010 at 3:31 PM

Hi,
I want to zoom into the recent location if the recent location of the marker can't be seen in the map after updating the marker.

Coordinator
Jun 2, 2010 at 3:32 PM

Hi ;}

still have no idea what do you mean

Jun 2, 2010 at 3:45 PM
Edited Jun 2, 2010 at 3:53 PM

:]

Let me  explain through transport example. For example; X marker is shown on the map. After the marker position update is removed from the screen, I want to center the marker position.

I hope I could tell. Sory my bad english.

 

 

Coordinator
Jun 2, 2010 at 3:51 PM

"After the marker position update is removed from the screen" // you mean it's still on the map, but not visible?

Jun 2, 2010 at 4:12 PM

No it's visible but it doesn't shown the screen in this zoom. And caps;

This marker's shown the screen -> http://img686.imageshack.us/img686/2720/37626529.png

After the update this marker out of screen ->http://img121.imageshack.us/img121/1121/52924683.png

And I want to center this marker on maps -> http://img9.imageshack.us/img9/2694/95390726.png

:]

Coordinator
Jun 2, 2010 at 4:17 PM

roger that! ;} oh, so you want to track one marker, it's easy: MainMap.CurrentPosition = marker.Position;

Jun 2, 2010 at 4:23 PM
Edited Jun 2, 2010 at 4:33 PM

But I want to update only out of screen. And not just one marker.

Coordinator
Jun 2, 2010 at 4:28 PM

?

Jun 2, 2010 at 4:35 PM

How can I find to shown marker? For example http://img686.imageshack.us/img686/2720/37626529.png , marker number's 8

Coordinator
Jun 3, 2010 at 4:51 AM

i can't catch your problem, if you have marker, you have it, you do not need to find it ;]

Jun 3, 2010 at 11:11 AM

Sorry, again me. I'II try to explain my problem last time.

My problem is this: You know there is a marker on map screen, but I want to learn if that marker inside of seem map area or not. I am asking this question because I can't see the marker if it's outside of seem map area. I hope I could succeed to explain.

And also, what I explained before to you by my correspond, It wasn't for only one marker, It was for more then one markers. The code what you gave me before, is takes the marker center of map screen.

But I want to learn this: When the one of the markers gone out of map screen, I want to shown in the screen by ZommAndMarker function.

Coordinator
Jun 3, 2010 at 11:23 AM

         bool isAllInView = true;
         foreach(var m in objects.Markers)
         {
            if(isAllInView)
            {
               if(!MainMap.CurrentViewArea.Contains(m.Position))
               {
                  isAllInView = false;
                  break;
               }
            }
         }

         if(!isAllInView)
         {
            MainMap.ZoomAndCenterMarkers(null);
         }

Jun 3, 2010 at 2:58 PM
This is it. I wanted to learn CurrentViewArea. Thanks a lot :]
Coordinator
Jun 3, 2010 at 3:23 PM

;}