Package 

Class FillManager

    • Constructor Summary

      Constructors 
      Constructor Description
      FillManager(MapView mapView, MapLibreMap maplibreMap, Style style) Create a fill manager, used to manage fills.
      FillManager(MapView mapView, MapLibreMap maplibreMap, Style style, String belowLayerId, String aboveLayerId) Create a fill manager, used to manage fills.
      FillManager(MapView mapView, MapLibreMap maplibreMap, Style style, String belowLayerId, String aboveLayerId, GeoJsonOptions geoJsonOptions) Create a fill manager, used to manage fills.
    • Method Summary

      Modifier and Type Method Description
      List<Fill> create(@NonNull() String json) Create a list of fills on the map.
      List<Fill> create(@NonNull() FeatureCollection featureCollection) Create a list of fills on the map.
      Boolean getFillAntialias() Get the FillAntialias propertyWhether or not the fill should be antialiased.
      void setFillAntialias(Boolean value) Set the FillAntialias propertyWhether or not the fill should be antialiased.
      Array<Float> getFillTranslate() Get the FillTranslate propertyThe geometry's offset.
      void setFillTranslate(Array<Float> value) Set the FillTranslate propertyThe geometry's offset.
      String getFillTranslateAnchor() Get the FillTranslateAnchor propertyControls the frame of reference for fillTranslate.
      void setFillTranslateAnchor(String value) Set the FillTranslateAnchor propertyControls the frame of reference for fillTranslate.
      void setFilter(@NonNull() Expression expression) Set filter on the managed fills.
      Expression getFilter() Get filter of the managed fills.
      • Methods inherited from class org.maplibre.android.plugins.annotation.AnnotationManager

        addClickListener, addDragListener, addLongClickListener, create, create, delete, delete, deleteAll, getAboveLayerId, getAnnotations, getBelowLayerId, getLayerId, onDestroy, removeClickListener, removeDragListener, removeLongClickListener, update, update, updateSource
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • FillManager

        FillManager(MapView mapView, MapLibreMap maplibreMap, Style style)
        Create a fill manager, used to manage fills.
        Parameters:
        maplibreMap - the map object to add fills to
        style - a valid a fully loaded style object
      • FillManager

        FillManager(MapView mapView, MapLibreMap maplibreMap, Style style, String belowLayerId, String aboveLayerId)
        Create a fill manager, used to manage fills.
        Parameters:
        maplibreMap - the map object to add fills to
        style - a valid a fully loaded style object
        belowLayerId - the id of the layer above the fill layer
        aboveLayerId - the id of the layer below the fill layer
      • FillManager

        FillManager(MapView mapView, MapLibreMap maplibreMap, Style style, String belowLayerId, String aboveLayerId, GeoJsonOptions geoJsonOptions)
        Create a fill manager, used to manage fills.
        Parameters:
        maplibreMap - the map object to add fills to
        style - a valid a fully loaded style object
        belowLayerId - the id of the layer above the fill layer
        aboveLayerId - the id of the layer below the fill layer
        geoJsonOptions - options for the internal source
    • Method Detail

      • create

        @UiThread() List<Fill> create(@NonNull() String json)

        Create a list of fills on the map.

        Fills are going to be created only for features with a matching geometry.

        All supported properties are:FillOptions.PROPERTY_FILL_OPACITY - FloatFillOptions.PROPERTY_FILL_COLOR - StringFillOptions.PROPERTY_FILL_OUTLINE_COLOR - StringFillOptions.PROPERTY_FILL_PATTERN - StringLearn more about above properties in the Style specification.

        Out of spec properties:"is-draggable" - Boolean, true if the fill should be draggable, false otherwise

        Parameters:
        json - the GeoJSON defining the list of fills to build
      • create

        @UiThread() List<Fill> create(@NonNull() FeatureCollection featureCollection)

        Create a list of fills on the map.

        Fills are going to be created only for features with a matching geometry.

        All supported properties are:FillOptions.PROPERTY_FILL_OPACITY - FloatFillOptions.PROPERTY_FILL_COLOR - StringFillOptions.PROPERTY_FILL_OUTLINE_COLOR - StringFillOptions.PROPERTY_FILL_PATTERN - StringLearn more about above properties in the Style specification.

        Out of spec properties:"is-draggable" - Boolean, true if the fill should be draggable, false otherwise

        Parameters:
        featureCollection - the featureCollection defining the list of fills to build
      • getFillAntialias

         Boolean getFillAntialias()

        Get the FillAntialias property

        Whether or not the fill should be antialiased.

      • setFillAntialias

         void setFillAntialias(Boolean value)

        Set the FillAntialias property

        Whether or not the fill should be antialiased.

        Parameters:
        value - property wrapper value around Boolean
      • getFillTranslate

         Array<Float> getFillTranslate()

        Get the FillTranslate property

        The geometry's offset. Values are [x, y] where negatives indicate left and up, respectively.

      • setFillTranslate

         void setFillTranslate(Array<Float> value)

        Set the FillTranslate property

        The geometry's offset. Values are [x, y] where negatives indicate left and up, respectively.

        Parameters:
        value - property wrapper value around Float[]
      • getFillTranslateAnchor

         String getFillTranslateAnchor()

        Get the FillTranslateAnchor property

        Controls the frame of reference for fillTranslate.

      • setFillTranslateAnchor

         void setFillTranslateAnchor(String value)

        Set the FillTranslateAnchor property

        Controls the frame of reference for fillTranslate.

        Parameters:
        value - property wrapper value around String
      • setFilter

         void setFilter(@NonNull() Expression expression)

        Set filter on the managed fills.

        Parameters:
        expression - expression