Marks on the Center.

Topics: WPF
Mar 8, 2013 at 12:27 PM
Hi radioman,

I need show a mark on the Center of the map. I want to clarify that the Position associated to the mark is the same that the of the map. These positions are updated via GPS.

The cross is shown in the center, but not the mark. :(

Any suggestions?

Thanks
Mar 8, 2013 at 12:29 PM
set marker position to center
Mar 8, 2013 at 12:42 PM
Thanks,

Sorry, but how I obtain the center of the map?
Mar 8, 2013 at 12:43 PM
Thanks,

Sorry, but how I obtain the center of the map?
Mar 8, 2013 at 1:03 PM
Edited Mar 8, 2013 at 1:03 PM
marker.Position = map.Position;
Mar 8, 2013 at 1:05 PM
Yes, I have a similar code. See:

this.MainMap.Markers[0].Position = new PointLatLng(latitude, longitude);
this.MainMap.Position = new PointLatLng(latitude, longitude);
Mar 8, 2013 at 1:36 PM
Edited Mar 8, 2013 at 1:36 PM
I think the problem was solved, please could you confirm it?
  • The size mark is (50 X 50)
I changed the Offset of the mark, marking the X = -25 and Y= -25, ie -mark.Width / 2, -mark.Height / 2. It is correct?
Mar 8, 2013 at 1:49 PM
yes