| java.lang.Object | |
| ↳ | com.steerpath.sdk.maps.SteerpathLayerOptions |
Wraps Mapbox Layer and Filter. When SteerpathLayerOptions is added to the map via
addAnnotation(SteerpathAnnotationOptions)}, Layer is added to MapboxMap:
addLayer(Layer l);
Floor specific markers are set visible or invisible with Filters:
Filter.all(
SteerpathLayerOptions.getFilterStatement(), <<<<<<< your custom Filter
Filter.eq("layerIndex", currentFloorIndex),
Filter.eq("buildingRef", visibleBuildingRef)));
When removeAnnotation(SteerpathAnnotation)} is called, Layer is removed from the map.
Deprecated: Will be removed when proper replacement has been implemented for managing Layers.
| Nested Classes | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| @interface | SteerpathLayerOptions.BaseFilter | ||||||||||
| Constants | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| String | BUILDING_REF | JsonObject property name which is needed for floor switching. | |||||||||
| String | DEFAULT_SOURCE | Steerpath default Source and SourceLayer name. | |||||||||
| String | LAYER_INDEX | JsonObject property name which is needed for floor switching. | |||||||||
| Public Constructors | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
|
SteerpathLayerOptions()
Default constructor.
| |||||||||||
| Public Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| String[] |
getBaseFilters()
TODO
| ||||||||||
| FeatureCollection |
getFeatureCollection()
TODO
| ||||||||||
| Expression |
getFilterStatement()
Return filter statement.
| ||||||||||
| HashMap<String, Integer> |
getImages()
TODO
| ||||||||||
| Layer |
getLayer()
Returns Layer
| ||||||||||
| Source |
getSource()
Return Source
| ||||||||||
| String | toString() | ||||||||||
| SteerpathLayerOptions |
withBaseFilters(String... baseFilters)
TODO
| ||||||||||
| SteerpathLayerOptions |
withFeatureCollection(FeatureCollection featureCollection)
TODO
| ||||||||||
| SteerpathLayerOptions |
withFillExtrusionLayer(FillExtrusionLayer layer)
Adds FillExtrusionLayer to the map.
| ||||||||||
| SteerpathLayerOptions |
withFilterStatement(Expression expression)
Additional and optional Filter.Statement that is applied when building or floor switching takes place.
| ||||||||||
| SteerpathLayerOptions |
withImage(String imageId, int drawableRes)
TODO
| ||||||||||
| SteerpathLayerOptions |
withLineLayer(LineLayer layer)
Adds LineLayer to the map.
| ||||||||||
| SteerpathLayerOptions |
withSource(Source source)
If Layer depends on custom (non-default "blueprint") Source, and it is not added to Mapbox in Activity or Fragment,
it can be given to SteerpathLayerOptions.
| ||||||||||
| SteerpathLayerOptions |
withSymbolLayer(SymbolLayer layer)
Adds SymbolLayer to the map.
| ||||||||||
|
[Expand]
Inherited Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
| |||||||||||
JsonObject property name which is needed for floor switching.
Steerpath default Source and SourceLayer name.
JsonObject property name which is needed for floor switching.
Default constructor.
TODO
TODO
Return filter statement.
TODO
Returns Layer
Return Source
Adds FillExtrusionLayer to the map.
Additional and optional Filter.Statement that is applied when building or floor switching takes place.
If Layer depends on custom (non-default "blueprint") Source, and it is not added to Mapbox in Activity or Fragment, it can be given to SteerpathLayerOptions. Source will be added to Mapbox when floor changes and removed when annotation is removed.