How to draw filled and colored features with colors from properties?

I know how to to show a few features (Dynamic map sources using json data and layer like in DynamicSourcesPresenter.java. But in only draws borders of features in one color defined in layer string.

I need to draw several filled features with different colors described in properties nodes in GeoJson. How to do it?

And what are the parameters in layer json? I see node paint with parameters like: line-color and line-widht. What are the other parameters? Is there any documentation for them?

My source GeoJSON is below

{
  "type": "FeatureCollection",
  "features": [
    {
      "type": "Feature",
      "properties": {
        "stroke": "#FF0000",
        "stroke-width": 2,
        "stroke-opacity": 1,
        "fill": "#FF0000",
        "fill-opacity": 0.5
      },
      "geometry": {
        "type": "Polygon",
        "coordinates": [
          [
            [
              16.920318603515625,
              52.412262641625645
            ],
            [
              16.915297508239746,
              52.410561083520015
            ],
            [
              16.916799545288086,
              52.40802171319268
            ],
            [
              16.92220687866211,
              52.40702686846811
            ],
            [
              16.92641258239746,
              52.40885945976901
            ],
            [
              16.92817211151123,
              52.411686737000544
            ],
            [
              16.921863555908203,
              52.40912125231122
            ],
            [
              16.920318603515625,
              52.412262641625645
            ]
          ]
        ]
      }
    },
    {
      "type": "Feature",
      "properties": {
        "stroke": "#00FF00",
        "stroke-width": 2,
        "stroke-opacity": 1,
        "fill": "#00FF00",
        "fill-opacity": 0.5
      },
      "geometry": {
        "type": "Polygon",
        "coordinates": [
          [
            [
              16.922292709350586,
              52.41600583839139
            ],
            [
              16.924309730529785,
              52.413623840846164
            ],
            [
              16.92890167236328,
              52.412262641625645
            ],
            [
              16.929717063903805,
              52.410142228379705
            ],
            [
              16.927528381347656,
              52.407602833938036
            ],
            [
              16.93392276763916,
              52.40668652170101
            ],
            [
              16.937012672424316,
              52.41132024832374
            ],
            [
              16.935982704162598,
              52.41540380720551
            ],
            [
              16.92868709564209,
              52.414068839171215
            ],
            [
              16.92795753479004,
              52.417497793298324
            ],
            [
              16.922292709350586,
              52.41600583839139
            ]
          ]
        ]
      }
    },
    {
      "type": "Feature",
      "properties": {
        "stroke": "#0000FF",
        "stroke-width": 2,
        "stroke-opacity": 1,
        "fill": "#0000FF",
        "fill-opacity": 0.5
      },
      "geometry": {
        "type": "Polygon",
        "coordinates": [
          [
            [
              16.921091079711914,
              52.406032001306805
            ],
            [
              16.917614936828613,
              52.40590109606265
            ],
            [
              16.91624164581299,
              52.40453965849566
            ],
            [
              16.91915988922119,
              52.40325672695437
            ],
            [
              16.92667007446289,
              52.402916351099826
            ],
            [
              16.933321952819824,
              52.404277838762106
            ],
            [
              16.934351921081543,
              52.40597963925577
            ],
            [
              16.925597190856934,
              52.40739339281908
            ],
            [
              16.923365592956543,
              52.405429833967204
            ],
            [
              16.921091079711914,
              52.406032001306805
            ]
          ]
        ]
      }
    }
  ]
}

Hello!

Welcome to our community :slight_smile:

You can find a description of style parameters here: https://developer.tomtom.com/maps-api/maps-api-documentation-map-styles/map-styler-documentation.

Regarding the expected result is below picture looks on something similar to what you are trying to achieve?