Name: Portland_Buildings_Arrow
Type: Point
ZFactor: 1
Last Cached (utc): Monday, June 17, 2024 12:42:01 PM
Alias: PortlandBuildingsWithPoints_MFL
Capabilities: View,Query
DrawingInfo:
{
"renderer": {
"authoringInfo": {
"visualVariables": [
{
"type": "sizeInfo",
"minSliderValue": 20,
"maxSliderValue": 20
},
{
"type": "colorInfo",
"minSliderValue": 0,
"maxSliderValue": 1
}
]
},
"type": "simple",
"symbol": {
"type": "PointSymbol3D",
"symbolLayers": [
{
"type": "Icon",
"resource": {
"dataURI": "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABUAAAASCAYAAAC0EpUuAAAACXBIWXMAAA7EAAAOxAGVKw4bAAAA1ElEQVQ4ja2U7Q2CMBRF70veErIGjAFruIZdA8cQ1nANHeOaJ9QQ7ReV84eQNie3fTdVFEJyEJGpZK8WClsAN5KdiNwPkQJw63cE0P0tJXkG0K+/bck1aEbYADDpFktbL8WS0O5zy8nSi8h1t5TLcCxViJHkLCKPvUldYu0tBjAUS7mk9MOJ0du+UMW0MiVSFdNMhXK0oaFpQYVy2KniUoQrlMMq5kTE/UiZrlCOC8nJD00rhhPD+YrpJmXpcGJ8KuaT1h77G3sTGl1TPgHMR1jtFXsBObhenJIi8AUAAAAASUVORK5CYII="
},
"size": 13,
"anchorPosition": [
0,
0
],
"anchor": "relative"
}
]
},
"visualVariables": [
{
"type": "sizeInfo",
"valueExpressionTitle": "Custom",
"valueExpression": "var size = 20\n\nif ($feature.INCREASE_VALUE < -50 || $feature.INCREASE_VALUE > 50) {\n size = 30\n}\n\nreturn size\n",
"minDataValue": 20,
"axis": "height",
"legendOptions": {
"title": "Custom",
"showLegend": false
}
},
{
"type": "rotationInfo",
"valueExpressionTitle": "Custom",
"valueExpression": "var heading = 0\n\nif ($feature.INCREASE_VALUE < 0) {\n heading = 180\n}\n\nreturn heading",
"rotationType": "geographic",
"axis": "heading"
},
{
"type": "rotationInfo",
"valueExpressionTitle": "Custom",
"valueExpression": "var heading = 0\n\nif ($feature.INCREASE_VALUE < 0) {\n heading = 180\n}\n\nreturn heading",
"rotationType": "geographic",
"axis": "heading"
},
{
"type": "colorInfo",
"valueExpressionTitle": "Custom",
"valueExpression": "// Assuming your color ramp has two colors:\n// Index 0: Red (#FF0000)\n// Index 1: Green (#00FF00)\n\nvar colorIndex = 0; // Default to red\n\nif ($feature.INCREASE_VALUE >= 0) {\n colorIndex = 1; // Set to green for positive/zero values\n}\n\nreturn colorIndex;",
"stops": [
{
"value": 0,
"color": [
255,
0,
0,
255
]
},
{
"value": 1,
"color": [
76,
230,
0,
255
]
}
],
"legendOptions": {
"title": "Custom",
"showLegend": false
}
}
]
}
}