31-01-2022, Saat: 11:51
FMX.Map.iOS unit'inde Origin değerinden 0.5 çıkarılıyor.
Bunu deden yapıyor bilmiyorum.
Söz konusu Unit'teki ilgili kısım:
0.5 çıkarıldığına göre siz bu değeri 1,1 olarak gönderin.
Bunu deden yapıyor bilmiyorum.
Söz konusu Unit'teki ilgili kısım:
function TMapKitMapMarker.AnnotationView: MKAnnotationView; var Pin: MKPinAnnotationView; Image: UIImage; begin if FAnnotationView <> nil then Exit(FAnnotationView); if Descriptor.Icon <> nil then begin Result := TMKAnnotationView.Wrap(TMKAnnotationView.Alloc.initWithAnnotation((FAnnotation as ILocalObject).GetObjectID, nil)); Image := BitmapToUIImage(Descriptor.Icon); Result.setImage(Image); Result.setUserInteractionEnabled(Descriptor.Draggable); Result.setDraggable(Descriptor.Draggable); Result.setCanShowCallout(True); Result.setCenterOffset(CGPointMake(Image.size.width * (Descriptor.Origin.X - 0.5), - Image.size.height * (Descriptor.Origin.Y - 0.5))); end else begin Pin := TMKPinAnnotationView.Wrap(TMKPinAnnotationView.Alloc.initWithAnnotation((FAnnotation as ILocalObject).GetObjectID, nil)); Pin.setUserInteractionEnabled(Descriptor.Draggable); Pin.setCanShowCallout(True); Pin.setDraggable(Descriptor.Draggable); Pin.setUserInteractionEnabled(Descriptor.Draggable); Result := Pin; end; FAnnotationView := Result; end;
0.5 çıkarıldığına göre siz bu değeri 1,1 olarak gönderin.
Begin : = end / 2;

