Class BuildingFootprintHighlightLayer
-
- All Implemented Interfaces:
public final class BuildingFootprintHighlightLayerThis layer handles the creation and customization of a FillLayer to highlight the footprint of an individual building.
-
-
Field Summary
Fields Modifier and Type Field Description public final static StringHIGHLIGHTED_BUILDING_FOOTPRINT_LAYER_IDprivate LatLngqueryLatLngprivate Integercolorprivate Floatopacity
-
Constructor Summary
Constructors Constructor Description BuildingFootprintHighlightLayer(TrimbleMapsMap trimbleMapsMap)
-
Method Summary
Modifier and Type Method Description final LatLnggetQueryLatLng()This LatLng is used to determine what associated footprint should be highlighted. final UnitsetQueryLatLng(LatLng queryLatLng)Set the LatLng location of the building footprint highlight layer. final IntegergetColor()Retrieve the latest set color of the building footprint highlight layer. final UnitsetColor(Integer color)Set the color of the building footprint highlight layer. final FloatgetOpacity()Retrieve the latest set opacity of the building footprint highlight layer. final UnitsetOpacity(Float opacity)Set the opacity of the building footprint highlight layer. final UnitupdateVisibility(Boolean visible)Toggles the visibility of the building footprint highlight layer.
-
-
-
Method Detail
-
getQueryLatLng
final LatLng getQueryLatLng()
This LatLng is used to determine what associated footprint should be highlighted.
-
setQueryLatLng
final Unit setQueryLatLng(LatLng queryLatLng)
Set the LatLng location of the building footprint 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 a 2D highlighted footprint.
- Parameters:
queryLatLng- the new coordinates to use in querying the building layer to get the associated Polygon to eventually highlight.
-
getColor
final Integer getColor()
Retrieve the latest set color of the building footprint highlight layer.
-
setColor
final Unit setColor(Integer color)
Set the color of the building footprint highlight layer.
- Parameters:
color- the new color value
-
getOpacity
final Float getOpacity()
Retrieve the latest set opacity of the building footprint highlight layer.
-
setOpacity
final Unit setOpacity(Float opacity)
Set the opacity of the building footprint highlight layer.
- Parameters:
opacity- the new opacity value
-
updateVisibility
final Unit updateVisibility(Boolean visible)
Toggles the visibility of the building footprint highlight layer.
- Parameters:
visible- true if the layer should be displayed.
-
-