Esempio n. 1
0
        public void ChangeAnnotationLocation(string seekiosId
                                             , double latitude
                                             , double longitude
                                             , double accuracy)
        {
            var idMarkerAsso = _annotationIdAssociation.FirstOrDefault(id => id.SeekiosId == seekiosId);

            if (idMarkerAsso != null)
            {
                var annotation = _annotations.FirstOrDefault(m => m.Id.Equals(idMarkerAsso.MarkerId));
                if (annotation != null)
                {
                    var mapCenter = new CLLocationCoordinate2D(latitude, longitude);
                    annotation.SetCoordinate(mapCenter);
                    MapViewControl.SelectAnnotation(annotation, true);
                    MapViewControl.SetCenterCoordinate(mapCenter, true);
                }
            }
        }