Konuyu Oyla:
  • Derecelendirme: 0/5 - 0 oy
  • 1
  • 2
  • 3
  • 4
  • 5
Mapview mark rotate sorunu
#8
Android, iOS ve her iki platformun base class'ındaki ortak atamalarına bakalım.
Android tarafında:
function TAndroidMapView.BuildMarkerOptions(const D: TMapMarkerDescriptor): JMarkerOptions;
begin
 Result := TJMarkerOptions.JavaClass.init.alpha(D.Opacity)
   .anchor(D.Origin.X, D.Origin.Y)
   .draggable(D.Draggable)
   .flat(D.Appearance = TMarkerAppearance.Flat)
   .position(CoordToLatLng(D.Position))
   .rotation(D.Rotation)
   .snippet(StringToJString(D.Snippet))
   .title(StringToJString(D.Title))
   .visible(D.Visible);
 if D.Icon <> nil then
   Result := Result.icon(CreateBitmapDescriptorFromBitmap(D.Icon));
end;

iOS Tarafında:
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;

Map ortak sınıfında:
class function TMapMarkerDescriptor.Create(const Position: TMapCoordinate; const Title: string): TMapMarkerDescriptor;
begin
 Result.Position := Position;
 Result.Title := Title;
 Result.Opacity := 1;
 Result.Origin := TPointF.Create(0.5, 1);
 Result.Snippet := string.Empty;
 Result.Draggable := False;
 Result.Visible := True;
 Result.Appearance := TMarkerAppearance.Flat;
 Result.Rotation := 0;
 Result.Icon := nil;
end;

Yukarıdaki temel atamalara baktığımızda; marker yönünün Origin (anchor) ve Flat özellikleri ile ilgili olduğunu görüyoruz. Siz her ne kadar set etseniz de durum değişmediğine göre kodlarınızda bir sorun yok demektir. 
Embercadero comminity'e bu durumu bildirmekten başka çare görünmüyor.
Begin : = end / 2;
Cevapla


Bu Konudaki Yorumlar
Mapview mark rotate sorunu - Yazar: arsl01 - 31-01-2022, Saat: 10:54
Cvp: Mapview mark rotate sorunu - Yazar: RAD Coder - 31-01-2022, Saat: 11:31
Mapview mark rotate sorunu - Yazar: arsl01 - 31-01-2022, Saat: 11:38
Cvp: Mapview mark rotate sorunu - Yazar: RAD Coder - 31-01-2022, Saat: 11:51
Mapview mark rotate sorunu - Yazar: arsl01 - 31-01-2022, Saat: 11:55
Cvp: Mapview mark rotate sorunu - Yazar: RAD Coder - 31-01-2022, Saat: 11:55
Mapview mark rotate sorunu - Yazar: arsl01 - 31-01-2022, Saat: 12:01
Cvp: Mapview mark rotate sorunu - Yazar: RAD Coder - 31-01-2022, Saat: 12:13
Cvp: Mapview mark rotate sorunu - Yazar: arsl01 - 31-01-2022, Saat: 12:23
Mapview mark rotate sorunu - Yazar: arsl01 - 01-02-2022, Saat: 21:21
Cvp: Mapview mark rotate sorunu - Yazar: RAD Coder - 02-02-2022, Saat: 09:08
Mapview mark rotate sorunu - Yazar: arsl01 - 02-02-2022, Saat: 09:21
Mapview mark rotate sorunu - Yazar: arsl01 - 07-02-2022, Saat: 14:45

Konu ile Alakalı Benzer Konular
Konular Yazar Yorumlar Okunma Son Yorum
  Webbrowser Sorunu [ÇÖZÜLDÜ] codder71 7 418 10-02-2026, Saat: 17:04
Son Yorum: codder71
  Orange UI nin 2.3 Free versiyonu Dil Sorunu ? ovural 0 267 12-11-2025, Saat: 16:53
Son Yorum: ovural
  IOS Uygulama Yayınlama Sorunu emrahozten 2 714 11-06-2025, Saat: 21:00
Son Yorum: hakan_cng
  Boyutlandırma Sorunu Coban 6 1.406 28-03-2025, Saat: 11:51
Son Yorum: Coban
  Tam ekran sorunu Altıner 31 5.477 25-01-2025, Saat: 16:29
Son Yorum: mrmarman



Konuyu Okuyanlar: 1 Ziyaretçi