Class MBFeatureData

    • Constructor Detail

      • MBFeatureData

        public MBFeatureData​(JSONArray json)
    • Method Detail

      • featureGeometryType

        public Expression featureGeometryType()
        Gets the feature's geometry type: Point, MultiPoint, LineString, MultiLineString, Polygon, MultiPolygon.Example: ["geometry-type"]: string
        geometry type expression
      • featureId

        public Expression featureId()
        Gets the feature's id, if it has one. Example: ["id"]: value
        feature id expression
      • featureProperties

        public Expression featureProperties()
        Gets the feature properties object. Note that in some cases, it may be more efficient to use ["get", "property_name"] directly. Example: ["properties"]: object
        expression of feature attributes