Exemple #1
0
 public MapLocationPage()
 {
     InitializeComponent();
     HandleReceivedMessages();
     _mapType             = "Recruits";
     _mapService          = new MapLocationService();
     map.Center           = new Position(54.936310, -4.621107);
     map.ZoomLevel        = 4.1;
     _annotationRecruits  = new ObservableCollection <Annotation>();
     _annotationsComrades = new ObservableCollection <Annotation>();
     _mapListRecruits     = _mapService.GetMapRecruits();
     _mapListComrades     = _mapService.GetMapComrades();
 }
Exemple #2
0
 public MapLocationPage(string mapType)
 {
     InitializeComponent();
     _mapService = new MapLocationService();
     map.Center  = new Position(54.936310, -4.621107);
     HandleReceivedMessages();
     _annotationRecruits  = new ObservableCollection <Annotation>();
     _annotationsComrades = new ObservableCollection <Annotation>();
     _mapListRecruits     = _mapService.GetMapRecruits();
     _mapListComrades     = _mapService.GetMapComrades();
     if (mapType.Equals("Recruits"))
     {
         _mapType = mapType;
         ShowRecruitsTab();
     }
     else if (mapType.Equals("Comrades"))
     {
         _mapType = mapType;
         ShowsComradesTab();
     }
 }