Forum: Cross-Platform-Entwicklung
Delphi
by BBoy,
1. Sep 2016
Das klingt logisch und stimmt sicherlich für normale Grafikobjekte.
Ein MyMarker oder um genau zu sein FMX.Maps.TMapMarkerDescriptor.Icon hat nur ein Fmx::Graphics::TBitmap* Icon; sonst nichts! Kein Picture usw.
Ich kann nur
geht nicht
Mymarker.Icon.LoadFromFile(TPath.GetDocumentsPath + PathDelim + 'icon_black2.bmp');
geht nicht
Mymarker.Icon.LoadFromFile(TPath.GetDocumentsPath +...
Forum: Cross-Platform-Entwicklung
Delphi
by BBoy,
1. Sep 2016
Kannst du das bitte etwas genauer erklären?
Ein Timage habe ich ja nun. Was bringt mir das Tbitmap für einen Vorteil?
Mymarker.Icon.LoadFromFile(TPath.GetDocumentsPath + PathDelim + 'icon_black.png');
So sollte es eigentlich funktionieren. Macht es aber nicht. Auch aus einer Imagelist heraus will es nicht.
Vielleicht ist die TMapView buggy, bei den vielen Problemen die ich damit habe :-D
Forum: Cross-Platform-Entwicklung
Delphi
by BBoy,
1. Sep 2016
Für mein Problem habe ich eine Notlösung gefunden. Ich habe das gewünschte Markericon in ein TImage geladen und dieses weise ich dem Icon zu:
MyMarker.Icon := Image1.Bitmap;
Funktioniert bestens. Hoffe aber eine bessere Lösung zu finden.
Forum: Cross-Platform-Entwicklung
Delphi
by BBoy,
28. Aug 2016
Ich möchte ein eigenes Icon verwenden für die TMapMarker.
Mein Code:
var
Position: TMapCoordinate;
begin
position.Latitude := mapview1.Location.Latitude;
position.Longitude := mapview1.Location.Longitude;