Class FillManager
-
Field Summary
Fields inherited from class com.trimblemaps.mapsdk.plugins.annotation.AnnotationManager
annotations, layer, trimbleMapsMap -
Constructor Summary
ConstructorsConstructorDescriptionFillManager(com.trimblemaps.mapsdk.maps.MapView mapView, com.trimblemaps.mapsdk.maps.TrimbleMapsMap trimbleMapsMap, com.trimblemaps.mapsdk.maps.Style style) Create a fill manager, used to manage fills.FillManager(com.trimblemaps.mapsdk.maps.MapView mapView, com.trimblemaps.mapsdk.maps.TrimbleMapsMap trimbleMapsMap, com.trimblemaps.mapsdk.maps.Style style, String belowLayerId) Create a fill manager, used to manage fills.FillManager(com.trimblemaps.mapsdk.maps.MapView mapView, com.trimblemaps.mapsdk.maps.TrimbleMapsMap trimbleMapsMap, com.trimblemaps.mapsdk.maps.Style style, String belowLayerId, com.trimblemaps.mapsdk.style.sources.GeoJsonOptions geoJsonOptions) Create a fill manager, used to manage fills. -
Method Summary
Modifier and TypeMethodDescriptioncreate(com.trimblemaps.geojson.FeatureCollection featureCollection) Create a list of fills on the map.Create a list of fills on the map.Get the FillAntialias propertyFloat[]Get the FillTranslate propertyGet the FillTranslateAnchor propertycom.trimblemaps.mapsdk.style.expressions.ExpressionGet filter of the managed fills.protected voidsetDataDrivenPropertyIsUsed(String property) voidsetFillAntialias(Boolean value) Set the FillAntialias propertyvoidsetFillTranslate(Float[] value) Set the FillTranslate propertyvoidsetFillTranslateAnchor(String value) Set the FillTranslateAnchor propertyvoidsetFilter(com.trimblemaps.mapsdk.style.expressions.Expression expression) Set filter on the managed fills.Methods inherited from class com.trimblemaps.mapsdk.plugins.annotation.AnnotationManager
addClickListener, addDragListener, addLongClickListener, create, create, delete, delete, deleteAll, getAnnotations, getLayerId, onDestroy, removeClickListener, removeDragListener, removeLongClickListener, update, update, updateSource
-
Constructor Details
-
FillManager
@UiThread public FillManager(@NonNull com.trimblemaps.mapsdk.maps.MapView mapView, @NonNull com.trimblemaps.mapsdk.maps.TrimbleMapsMap trimbleMapsMap, @NonNull com.trimblemaps.mapsdk.maps.Style style) Create a fill manager, used to manage fills.- Parameters:
trimbleMapsMap- the map object to add fills tostyle- a valid a fully loaded style object
-
FillManager
@UiThread public FillManager(@NonNull com.trimblemaps.mapsdk.maps.MapView mapView, @NonNull com.trimblemaps.mapsdk.maps.TrimbleMapsMap trimbleMapsMap, @NonNull com.trimblemaps.mapsdk.maps.Style style, @Nullable String belowLayerId) Create a fill manager, used to manage fills.- Parameters:
trimbleMapsMap- the map object to add fills tostyle- a valid a fully loaded style objectbelowLayerId- the id of the layer above the circle layer
-
FillManager
@UiThread public FillManager(@NonNull com.trimblemaps.mapsdk.maps.MapView mapView, @NonNull com.trimblemaps.mapsdk.maps.TrimbleMapsMap trimbleMapsMap, @NonNull com.trimblemaps.mapsdk.maps.Style style, @Nullable String belowLayerId, @Nullable com.trimblemaps.mapsdk.style.sources.GeoJsonOptions geoJsonOptions) Create a fill manager, used to manage fills.- Parameters:
trimbleMapsMap- the map object to add fills tostyle- a valid a fully loaded style objectbelowLayerId- the id of the layer above the circle layergeoJsonOptions- options for the internal source
-
-
Method Details
-
setDataDrivenPropertyIsUsed
- Specified by:
setDataDrivenPropertyIsUsedin classAnnotationManager<com.trimblemaps.mapsdk.style.layers.FillLayer,Fill, FillOptions, OnFillDragListener, OnFillClickListener, OnFillLongClickListener>
-
create
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 - Float
FillOptions.PROPERTY_FILL_COLOR - String
FillOptions.PROPERTY_FILL_OUTLINE_COLOR - String
FillOptions.PROPERTY_FILL_PATTERN - String
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- Returns:
- the list of built fills
-
create
@UiThread public List<Fill> create(@NonNull com.trimblemaps.geojson.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 - Float
FillOptions.PROPERTY_FILL_COLOR - String
FillOptions.PROPERTY_FILL_OUTLINE_COLOR - String
FillOptions.PROPERTY_FILL_PATTERN - String
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- Returns:
- the list of built fills
-
getFillAntialias
Get the FillAntialias propertyWhether or not the fill should be antialiased.
- Returns:
- property wrapper value around Boolean
-
setFillAntialias
Set the FillAntialias propertyWhether or not the fill should be antialiased.
- Parameters:
value- property wrapper value around Boolean
-
getFillTranslate
Get the FillTranslate propertyThe geometry's offset. Values are [x, y] where negatives indicate left and up, respectively.
- Returns:
- property wrapper value around Float[]
-
setFillTranslate
Set the FillTranslate propertyThe geometry's offset. Values are [x, y] where negatives indicate left and up, respectively.
- Parameters:
value- property wrapper value around Float[]
-
getFillTranslateAnchor
Get the FillTranslateAnchor propertyControls the frame of reference for
PropertyFactory.fillTranslate(java.lang.Float[]).- Returns:
- property wrapper value around String
-
setFillTranslateAnchor
Set the FillTranslateAnchor propertyControls the frame of reference for
PropertyFactory.fillTranslate(java.lang.Float[]).- Parameters:
value- property wrapper value around String
-
setFilter
public void setFilter(@NonNull com.trimblemaps.mapsdk.style.expressions.Expression expression) Set filter on the managed fills.- Parameters:
expression- expression
-
getFilter
@Nullable public com.trimblemaps.mapsdk.style.expressions.Expression getFilter()Get filter of the managed fills.- Returns:
- expression
-