Interface MapObject

  • All Implemented Interfaces:

    
    public interface MapObject
    
                        

    A common interface for all renderable map objects.

    This interface serves as a marker for objects that can be added to a Layer and rendered by a com.google.maps.android.renderer.Renderer. Implementations of this interface represent pure data models and should not hold references to Android SDK objects (like com.google.android.gms.maps.model.Marker).

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      public enum MapObject.Type

      Enum representing the type of map object.

    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Constructor Summary

      Constructors 
      Constructor Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      abstract MapObject.Type getType() Gets the type of the map object.
      abstract Boolean isVisible() Gets and sets the visibility of the map object.
      abstract Unit setVisible(Boolean isVisible) Gets and sets the visibility of the map object.
      abstract Float getZIndex() Gets and sets the z-index of the map object.
      abstract Unit setZIndex(Float zIndex) Gets and sets the z-index of the map object.
      • Methods inherited from class java.lang.Object

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

    • Method Detail

      • getType

         abstract MapObject.Type getType()

        Gets the type of the map object.

        Returns:

        The type of the map object.

      • isVisible

         abstract Boolean isVisible()

        Gets and sets the visibility of the map object.

      • setVisible

         abstract Unit setVisible(Boolean isVisible)

        Gets and sets the visibility of the map object.

      • getZIndex

         abstract Float getZIndex()

        Gets and sets the z-index of the map object.

      • setZIndex

         abstract Unit setZIndex(Float zIndex)

        Gets and sets the z-index of the map object.