Search code examples
delphigmlib

Is there a way to change the anchor position for an icon of a marker


I have larger pictures i want to use as icons in a list of markers but the default anchor position is bottom center and i would like it to be middle center, is there a way to do this with an marker icon in the gmlib map ?


Solution

  • Anchors.akCenter:= true; does not exist, but if you remove the akLeft and akRight it will center horizontally.

    Anchors:= []; should do the trick.

    See this answer: Anchors := [akCenter]?