(API 4.11)
Hi, i am trying to visualize Trees in real world size and it is working fine. The Problem is that when I measure the displayed diameter with the measure widget the size is correct for the "planar" mode but I actually want them to have the real world size in "geodesic" mode.
Here is the code I use to render the FeatureLayer:
var sr = new SimpleRenderer({
symbol: new SimpleMarkerSymbol({
color: [34,139,34, 0.7],
outline: {
color: [34,139,34],
width: 1
}
}),
label: "stamm",
visualVariables: [{
type: "size",
field: "KRONENDURC",
valueUnit: "meters", // values of Width_EW are expressed in feet
valueRepresentation: "diameter"
}]
});
As u can see the sample below shows a tree Feature with a diameter of 11 meters in planar mode. I actually want it to be 11 meters in Geodesic mode.
Is there a way to do some math with size gathered through the "KONENDURC" field?