Class CircleManager
-
Field Summary
Fields inherited from class com.trimblemaps.mapsdk.plugins.annotation.AnnotationManager
annotations, layer, trimbleMapsMap -
Constructor Summary
ConstructorsConstructorDescriptionCircleManager(com.trimblemaps.mapsdk.maps.MapView mapView, com.trimblemaps.mapsdk.maps.TrimbleMapsMap trimbleMapsMap, com.trimblemaps.mapsdk.maps.Style style) Create a circle manager, used to manage circles.CircleManager(com.trimblemaps.mapsdk.maps.MapView mapView, com.trimblemaps.mapsdk.maps.TrimbleMapsMap trimbleMapsMap, com.trimblemaps.mapsdk.maps.Style style, String belowLayerId) Create a circle manager, used to manage circles.CircleManager(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 circle manager, used to manage circles. -
Method Summary
Modifier and TypeMethodDescriptioncreate(com.trimblemaps.geojson.FeatureCollection featureCollection) Create a list of circles on the map.Create a list of circles on the map.Get the CirclePitchAlignment propertyGet the CirclePitchScale propertyFloat[]Get the CircleTranslate propertyGet the CircleTranslateAnchor propertycom.trimblemaps.mapsdk.style.expressions.ExpressionGet filter of the managed circles.voidsetCirclePitchAlignment(String value) Set the CirclePitchAlignment propertyvoidsetCirclePitchScale(String value) Set the CirclePitchScale propertyvoidsetCircleTranslate(Float[] value) Set the CircleTranslate propertyvoidsetCircleTranslateAnchor(String value) Set the CircleTranslateAnchor propertyprotected voidsetDataDrivenPropertyIsUsed(String property) voidsetFilter(com.trimblemaps.mapsdk.style.expressions.Expression expression) Set filter on the managed circles.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
-
CircleManager
@UiThread public CircleManager(@NonNull com.trimblemaps.mapsdk.maps.MapView mapView, @NonNull com.trimblemaps.mapsdk.maps.TrimbleMapsMap trimbleMapsMap, @NonNull com.trimblemaps.mapsdk.maps.Style style) Create a circle manager, used to manage circles.- Parameters:
trimbleMapsMap- the map object to add circles tostyle- a valid a fully loaded style object
-
CircleManager
@UiThread public CircleManager(@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 circle manager, used to manage circles.- Parameters:
trimbleMapsMap- the map object to add circles tostyle- a valid a fully loaded style objectbelowLayerId- the id of the layer above the circle layer
-
CircleManager
@UiThread public CircleManager(@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 circle manager, used to manage circles.- Parameters:
trimbleMapsMap- the map object to add circles 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.CircleLayer,Circle, CircleOptions, OnCircleDragListener, OnCircleClickListener, OnCircleLongClickListener>
-
create
Create a list of circles on the map.Circles are going to be created only for features with a matching geometry.
All supported properties are:
CircleOptions.PROPERTY_CIRCLE_RADIUS - Float
CircleOptions.PROPERTY_CIRCLE_COLOR - String
CircleOptions.PROPERTY_CIRCLE_BLUR - Float
CircleOptions.PROPERTY_CIRCLE_OPACITY - Float
CircleOptions.PROPERTY_CIRCLE_STROKE_WIDTH - Float
CircleOptions.PROPERTY_CIRCLE_STROKE_COLOR - String
CircleOptions.PROPERTY_CIRCLE_STROKE_OPACITY - Float
Out of spec properties:
"is-draggable" - Boolean, true if the circle should be draggable, false otherwise- Parameters:
json- the GeoJSON defining the list of circles to build- Returns:
- the list of built circles
-
create
@UiThread public List<Circle> create(@NonNull com.trimblemaps.geojson.FeatureCollection featureCollection) Create a list of circles on the map.Circles are going to be created only for features with a matching geometry.
All supported properties are:
CircleOptions.PROPERTY_CIRCLE_RADIUS - Float
CircleOptions.PROPERTY_CIRCLE_COLOR - String
CircleOptions.PROPERTY_CIRCLE_BLUR - Float
CircleOptions.PROPERTY_CIRCLE_OPACITY - Float
CircleOptions.PROPERTY_CIRCLE_STROKE_WIDTH - Float
CircleOptions.PROPERTY_CIRCLE_STROKE_COLOR - String
CircleOptions.PROPERTY_CIRCLE_STROKE_OPACITY - Float
Out of spec properties:
"is-draggable" - Boolean, true if the circle should be draggable, false otherwise- Parameters:
featureCollection- the featureCollection defining the list of circles to build- Returns:
- the list of built circles
-
getCircleTranslate
Get the CircleTranslate propertyThe geometry's offset. Values are [x, y] where negatives indicate left and up, respectively.
- Returns:
- property wrapper value around Float[]
-
setCircleTranslate
Set the CircleTranslate propertyThe geometry's offset. Values are [x, y] where negatives indicate left and up, respectively.
- Parameters:
value- property wrapper value around Float[]
-
getCircleTranslateAnchor
Get the CircleTranslateAnchor propertyControls the frame of reference for
PropertyFactory.circleTranslate(java.lang.Float[]).- Returns:
- property wrapper value around String
-
setCircleTranslateAnchor
Set the CircleTranslateAnchor propertyControls the frame of reference for
PropertyFactory.circleTranslate(java.lang.Float[]).- Parameters:
value- property wrapper value around String
-
getCirclePitchScale
Get the CirclePitchScale propertyControls the scaling behavior of the circle when the map is pitched.
- Returns:
- property wrapper value around String
-
setCirclePitchScale
Set the CirclePitchScale propertyControls the scaling behavior of the circle when the map is pitched.
- Parameters:
value- property wrapper value around String
-
getCirclePitchAlignment
Get the CirclePitchAlignment propertyOrientation of circle when map is pitched.
- Returns:
- property wrapper value around String
-
setCirclePitchAlignment
Set the CirclePitchAlignment propertyOrientation of circle when map is pitched.
- Parameters:
value- property wrapper value around String
-
setFilter
public void setFilter(@NonNull com.trimblemaps.mapsdk.style.expressions.Expression expression) Set filter on the managed circles.- Parameters:
expression- expression
-
getFilter
@Nullable public com.trimblemaps.mapsdk.style.expressions.Expression getFilter()Get filter of the managed circles.- Returns:
- expression
-