Hello,
I'm trying to load a svg image into a pushpin:
DelphiTdxMapPushpinAccess = class(TdxMapPushpin);
[...]
procedure TForm1.Button1Click(Sender: TObject);
var APushpin : TdxMapPushpin;
begin
APushpin := Layer1.AddItem(TdxMapPushpin) as TdxMapPushpin;
TdxMapPushpinAccess(APushpin).Image.LoadFromFile('direction.svg');
end;
This works fine when my monitor is set to 96 dpi. If I enable high dpi settings then the svg is not scaled but is shown smaller than expected.
Btw, do you have any documentation on how to use TdxMapPushpin.ImageOrigin?
I have attached the svg.
Thank you
Philipp
Hello Philipp,
Our default Pushpin items are automatically scaled according to the current DPI rate. Thus, I think that there should be a way to scale custom SVG images too. I have forwarded this ticket to our developers for research.
As for the ImageOrigin property, it is undocumented yet.