Differing unit of measures in a unique-value renderer

197
1
05-17-2022 02:47 PM
ararana
New Contributor

Is it possible to define multiple units of measure in a unique-value renderer?

At the moment I'm defining two different point-3d symbols in my renderer [see below], however I'd like Object 1 to be in feet and Object 2 to be in inches. 

Is this possible?

{
    "type": "unique-value",
    "defaultSymbol": {
        "type": "point-3d",
        "symbolLayers": [
            {
                "type": "object",
                "resource": {
                    "href": null
                }
            }
        ]
    },
    "field": "display_name",
    "uniqueValueInfos": [
        {
            "value": "Object 1",
            "symbol": {
                "type": "point-3d",
                "symbolLayers": [
                    {
                        "type": "object",
                        "height": 1,
                        "resource": {
                            "href": "https://www.fake.com/object1.glb"
                        }
                    }
                ]
            }
        },
        {
            "value": "Object 2",
            "symbol": {
                "type": "point-3d",
                "symbolLayers": [
                    {
                        "type": "object",
                        "height": 12,
                        "resource": {
                            "href": "https://www.fake.com/object2.glb"
                        }
                    }
                ]
            }
        }
    ]
}

 

 

0 Kudos
1 Reply
JoelBennett
MVP Regular Contributor

The documentation states the height values are expected to be in meters.  Therefore, it appears that if you have measurements in some other units, you'll need to convert those values to meters first.

0 Kudos