AnsweredAssumed Answered

How to make a symbol render with real world units?

Question asked by EternalDOOM on Aug 26, 2019
Latest reply on Sep 12, 2019 by EternalDOOM

Hello,

 

I have a new task and I'm not sure if this is possible with the Pro SDK.

 

My goal is to create a PointSymbol either from a picture or a character marker which represents a real world object of known size and to make the symbol show the object in natural size in scale range from 1:1 to 1:100.

 

In theory, if I look at the API, it should be enouth to set:

symbol.UseRealWorldSymbolSizes = true;
symbol.SetSize(23.75);

 

If map is set to meters, it should render the symbol with 23.75 m (map units) but when I zoom out, I would now expect the icon to stay at 23.75m and therefore to shrink appropriately. But it still holds its size at any zoom level.

 

This is my complete snippet:

 

CIMCharacterMarker marker = SymbolFactory.Instance.ConstructMarker(
                    66,
                    "Schiff_real",
                    "Regular",
                    _config.ShipIconSize,
                    ColorFactory.Instance.BlackRGB) as CIMCharacterMarker;

var symbol = SymbolFactory.Instance.ConstructPointSymbol(marker);
symbol.UseRealWorldSymbolSizes = true;
symbol.SetSize(23.75);

return symbol;


Can someone please help me?

Outcomes