Delphi-PRAXiS

Delphi-PRAXiS (https://www.delphipraxis.net/forum.php)
-   Sonstige Fragen zu Delphi (https://www.delphipraxis.net/19-sonstige-fragen-zu-delphi/)
-   -   Delphi MS MapPoint 2004, ein Pfeil auf eine Position zeichnen (https://www.delphipraxis.net/28946-ms-mappoint-2004-ein-pfeil-auf-eine-position-zeichnen.html)

Kostas 1. Sep 2004 16:06


MS MapPoint 2004, ein Pfeil auf eine Position zeichnen
 
Hallo Zusammen,

hat jemand von Euch erfahrung mit Delphi und MapPoint 2004?
Ich möchte einen Pfeil auf der karte Zeichnen mit Position und Winkel.

Im Beispiel wird in PushPin anlegen und auch angezeigt.
Das Rechteckshape wird jedoch nicht angezeigt.


procedure TForm2.BitBtn4Click(Sender: TObject);
var Mylocation : Location;
MyPoint:TPoint;
begin
GKMapPoint1.Map.ActiveMap.GoToLatLong(48.26683,11. 474956,1);
Mylocation := GKMapPoint1.Map.ActiveMap.GetLocation(48.26683, 11.474956,1);
GKMapPoint1.Map.ActiveMap.AddPushpin(MyLocation,'e rster Pin');
GKMapPoint1.Map.ActiveMap.Shapes.AddShape(geoShape Rectangle, Mylocation, 50, 30);

Mylocation.GoTo_;
GKMapPoint1.Map.ActiveMap.Altitude := GKMapPoint1.Map.ActiveMap.Altitude * 1.5;
end;

GKMapPoint1 sind VCL-Komponenten für Delphi für MapPoint.

Gruß Kostas


Alle Zeitangaben in WEZ +1. Es ist jetzt 16:07 Uhr.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024-2025 by Thomas Breitkreuz