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 <SPAN class="operator token">=</SPAN> SymbolFactory<SPAN class="punctuation token">.</SPAN>Instance<SPAN class="punctuation token">.</SPAN><SPAN class="token function">ConstructMarker</SPAN><SPAN class="punctuation token">(</SPAN>
<SPAN class="number token">66</SPAN><SPAN class="punctuation token">,</SPAN>
<SPAN class="string token">"Schiff_real"</SPAN><SPAN class="punctuation token">,</SPAN>
<SPAN class="string token">"Regular"</SPAN><SPAN class="punctuation token">,</SPAN>
_config<SPAN class="punctuation token">.</SPAN>ShipIconSize<SPAN class="punctuation token">,</SPAN>
ColorFactory<SPAN class="punctuation token">.</SPAN>Instance<SPAN class="punctuation token">.</SPAN>BlackRGB<SPAN class="punctuation token">)</SPAN> <SPAN class="keyword token">as</SPAN> CIMCharacterMarker<SPAN class="punctuation token">;</SPAN>
<SPAN class="keyword token">var</SPAN> symbol <SPAN class="operator token">=</SPAN> SymbolFactory<SPAN class="punctuation token">.</SPAN>Instance<SPAN class="punctuation token">.</SPAN><SPAN class="token function">ConstructPointSymbol</SPAN><SPAN class="punctuation token">(</SPAN>marker<SPAN class="punctuation token">)</SPAN><SPAN class="punctuation token">;</SPAN>
symbol<SPAN class="punctuation token">.</SPAN>UseRealWorldSymbolSizes <SPAN class="operator token">=</SPAN> <SPAN class="keyword token">true</SPAN><SPAN class="punctuation token">;</SPAN>
symbol<SPAN class="punctuation token">.</SPAN><SPAN class="token function">SetSize</SPAN><SPAN class="punctuation token">(</SPAN><SPAN class="number token">23.75</SPAN><SPAN class="punctuation token">)</SPAN><SPAN class="punctuation token">;</SPAN>
<SPAN class="keyword token">return</SPAN> symbol<SPAN class="punctuation token">;</SPAN><SPAN class="line-numbers-rows"><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN></SPAN>
Can someone please help me?