Class BuildingExtrusionHighlightLayer

  • All Implemented Interfaces:

    
    public final class BuildingExtrusionHighlightLayer
    
                        

    This layer handles the creation and customization of a FillExtrusionLayer to show 3D buildings.

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      final LatLng getQueryLatLng() This LatLng is used to determine what associated extrusion should be highlighted.
      final Unit setQueryLatLng(LatLng queryLatLng) Set the LatLng location of the building extrusion highlight layer.
      final Integer getColor() Retrieve the latest set color of the highlighted extrusion layer.
      final Unit setColor(Integer color) Set the color of the highlighted extrusion layer.
      final Float getOpacity() Retrieve the latest set opacity of the highlighted extrusion layer.
      final Unit setOpacity(Float opacity) Set the opacity of the highlighted extrusion layer.
      final Unit updateVisibility(Boolean visible) Toggles the visibility of the highlighted extrusion layer.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • BuildingExtrusionHighlightLayer

        BuildingExtrusionHighlightLayer(TrimbleMapsMap trimbleMapsMap)
    • 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.
      • getColor

         final Integer getColor()

        Retrieve the latest set color of the highlighted extrusion layer.

      • 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.