Esri / esri-leaflet-renderers

Plugin for Esri Leaflet to use drawing information defined in the feature service
51 stars 33 forks source link

Support valueExpression property of renderer. #145

Open paulamaddock opened 6 years ago

paulamaddock commented 6 years ago

The plugin does not support the valueExpression property in rendering.

{
  "renderer": {
    "authoringInfo": {
      "type": "classedSize"
    },
    "type": "classBreaks",
    "field": null,
    "valueExpression": "var days_since_treatment = DateDiff(Today(),$feature[\"LAST_EDIT_DATE_COPY\"],'days')\nreturn Round(days_since_treatment)",
    "valueExpressionTitle": "Custom",
    "defaultSymbol": {
      "color": [
        255,
        255,
        255,
        255
      ],
      "width": 1.5,
      "type": "esriSLS",
      "style": "esriSLSSolid"
    },
    "minValue": 0,
    "classBreakInfos": [ ],
    "defaultLabel": "Not treated yet"
  },
  "transparency": 0
}
jgravois commented 6 years ago

more info in https://github.com/ynunokawa/L.esri.WebMap/issues/74

jwasilgeo commented 3 years ago

and more related info in Esri/esri-leaflet#1195