Class BuildingExtrusionHighlightLayer
-
- All Implemented Interfaces:
public final class BuildingExtrusionHighlightLayerThis layer handles the creation and customization of a FillExtrusionLayer to show 3D buildings.
-
-
Field Summary
Fields Modifier and Type Field Description public final static StringHIGHLIGHTED_BUILDING_EXTRUSION_LAYER_IDprivate LatLngqueryLatLngprivate Integercolorprivate Floatopacity
-
Constructor Summary
Constructors Constructor Description BuildingExtrusionHighlightLayer(TrimbleMapsMap trimbleMapsMap)
-
Method Summary
Modifier and Type Method Description final LatLnggetQueryLatLng()This LatLng is used to determine what associated extrusion should be highlighted. final UnitsetQueryLatLng(LatLng queryLatLng)Set the LatLng location of the building extrusion highlight layer. final IntegergetColor()Retrieve the latest set color of the highlighted extrusion layer. final UnitsetColor(Integer color)Set the color of the highlighted extrusion layer. final FloatgetOpacity()Retrieve the latest set opacity of the highlighted extrusion layer. final UnitsetOpacity(Float opacity)Set the opacity of the highlighted extrusion layer. final UnitupdateVisibility(Boolean visible)Toggles the visibility of the highlighted extrusion layer.
-
-
-
Method Detail
-
getQueryLatLng
final LatLng getQueryLatLng()
This LatLng is used to determine what associated extrusion should be highlighted.
-
setQueryLatLng
final Unit setQueryLatLng(LatLng queryLatLng)
Set the LatLng location of the building extrusion highlight layer. The LatLng passed through this method is used to see whether its within the footprint of a specific building. If so, that building's footprint is used for the 3D highlighted extrusion.
- Parameters:
queryLatLng- the new coordinates to use in querying the building layer to get the associated Polygon to eventually highlight.
-
setColor
final Unit setColor(Integer color)
Set the color of the highlighted extrusion layer.
- Parameters:
color- the new color value
-
getOpacity
final Float getOpacity()
Retrieve the latest set opacity of the highlighted extrusion layer.
-
setOpacity
final Unit setOpacity(Float opacity)
Set the opacity of the highlighted extrusion layer.
- Parameters:
opacity- the new opacity value
-
updateVisibility
final Unit updateVisibility(Boolean visible)
Toggles the visibility of the highlighted extrusion layer.
- Parameters:
visible- true if the layer should be displayed.
-
-