PDA

View Full Version : Buried airplane symbol


joefitz
04-04-2012, 10:26 PM
In the attached screenshot, I placed two symbols on the globe. They are different symbols ("PUCI--------", "PMH---------"), but they are both given ground level altitudes. It appears that the Airplane's pivot point is in the center of the icon, while the Ground Troop's pivot point is the bottom edge of the icon.

Is there some attribute that I can use to make all icons pivot on the bottom edge?

Thank you.

pabercrombie
05-07-2012, 11:09 PM
By default symbols from the 2525 ground track pivot at the bottom edge of the icon and other symbols pivot at the center of the icon. You can use MilStd2525TacticalSymbol.setOffset to change this behavior. For example, to anchor a symbol at the bottom edge:

MilStd2525TacticalSymbol symbol = ...
symbol.setOffset(Offset.BOTTOM_CENTER);

joefitz
05-08-2012, 05:01 AM
Thanks! Excellent!