Hi William,
@William Deanit is possible to set the numbers of decimals! You need to change the custom template code.
Great idea to settings the decimals in the Template Designer! Thanks!
Here below an example from one of our SSA team Engineers.
Go to your html page of your custom template in the <spectrum spatial analyst folder>\SpectrumSpatialAnalyst\customerconfigurations\analyst\theme\infotemplates
replace your row of the sq area from this:
<pb-info-column [columnConfig]="SqAreaConfig" [feature]="data.feature" class="multilabelrow col-xs-12 default-topbtm-padding">
</pb-info-column>
to this - if you want to number 2 of decimals (or change the number):
<div class="multilabelrow col-xs-12 default-topbtm-padding">
<label class="wordBreak no-padding container-flex col-xs-5">
<i class="nc-icon-mini margin-r" [ngClass]="SqAreaConfig.icon" *ngIf="SqAreaConfig.showIcon"></i>
<strong>{{SqAreaConfig.label || SqAreaConfig.name}} : </strong>
</label>
<span class="wordBreakInline container-flex default-left-padding">
{{ data.feature[SqAreaConfig.name].value | number:'.2'}} {{ SqAreaConfig.suffix}}
</span>
</div>
thanks
Monica
------------------------------
Monica Di Martino
EMEA LI/GIS Presales Engineer
Pitney Bowes
------------------------------
Original Message:
Sent: 05-13-2019 22:03
From: William Dean
Subject: Template Designer - Decimal Place Precision
When an object is selected in SSA the default precision that is returned is excessive, example attached. There are no options for limiting this in the Template Designer for version 18.2. Happy to modify the relevant .html, .ts, .json for the config with guidance if someone can help. The same level of precision is returned for raster click enquiries when we have loaded in a DEM, would be nice to change that too.
Would like to see this managed in the Template Designer in future release so there is less flicking back and forth between configs managed through the Designer system and others manually managed, this is going to be important as the number of custom templates is very quickly building.
------------------------------
William Dean
Cairns Regional Council
------------------------------