Package 

Class GeoJsonPointStyle

  • All Implemented Interfaces:
    com.google.maps.android.data.geojson.GeoJsonStyle

    
    public class GeoJsonPointStyle
    extends Style implements GeoJsonStyle
                        

    A class that allows for GeoJsonPoint objects to be styled and for these styles to be translated into a MarkerOptions object. {@see * * MarkerOptions docs for more details about the options.}

    • Constructor Summary

      Constructors 
      Constructor Description
      GeoJsonPointStyle() Creates a new PointStyle object
    • Method Summary

      Modifier and Type Method Description
      Array<String> getGeometryType() Gets the type of geometries this style can be applied to
      float getAlpha() Gets the alpha of the GeoJsonPoint.
      void setAlpha(float alpha) Sets the alpha of the GeoJsonPoint.
      float getAnchorU() Gets the Anchor U coordinate of the GeoJsonPoint.
      float getAnchorV() Gets the Anchor V coordinate of the GeoJsonPoint.
      void setAnchor(float anchorU, float anchorV) Sets the Anchor U and V coordinates of the GeoJsonPoint.
      boolean isDraggable() Gets whether the GeoJsonPoint is draggable
      void setDraggable(boolean draggable) Sets the GeoJsonPoint to be draggable
      boolean isFlat() Gets whether the GeoJsonPoint is flat
      void setFlat(boolean flat) Sets the GeoJsonPoint to be flat
      BitmapDescriptor getIcon() Gets a bitmap image for the GeoJsonPoint
      void setIcon(BitmapDescriptor bitmap) Sets a bitmap image for the GeoJsonPoint
      float getInfoWindowAnchorU() Gets the info window anchor U coordinate of the GeoJsonPoint.
      float getInfoWindowAnchorV() Gets the info window anchor V coordinate of the GeoJsonPoint.
      void setInfoWindowAnchor(float infoWindowAnchorU, float infoWindowAnchorV) Sets the info window anchor U and V coordinates of the GeoJsonPoint.
      float getRotation() Gets the rotation of the GeoJsonPoint in degrees clockwise about the marker's anchor point
      void setRotation(float rotation) Sets the rotation of the GeoJsonPoint in degrees clockwise about the marker's anchor point
      String getSnippet() Gets the snippet of the GeoJsonPoint
      void setSnippet(String snippet) Sets the snippet of the GeoJsonPoint
      String getTitle() Gets the title of the GeoJsonPoint
      void setTitle(String title) Sets the title of the GeoJsonPoint
      boolean isVisible() Gets whether the GeoJsonPoint is visible
      void setVisible(boolean visible) Sets whether the GeoJsonPoint is visible
      MarkerOptions toMarkerOptions() Gets a new MarkerOptions object containing styles for the GeoJsonPoint
      String toString()
      float getZIndex() Gets the z index of the GeoJsonLineString
      void setZIndex(float zIndex) Sets the z index of the GeoJsonLineString
      • Methods inherited from class com.google.maps.android.data.Style

        setLineStringWidth, setMarkerHotSpot, setMarkerRotation, setPolygonFillColor, setPolygonStrokeWidth
      • Methods inherited from class java.util.Observable

        addObserver, countObservers, deleteObserver, deleteObservers, hasChanged, notifyObservers
      • Methods inherited from class java.lang.Object

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

      • GeoJsonPointStyle

        GeoJsonPointStyle()
        Creates a new PointStyle object
    • Method Detail

      • getAlpha

         float getAlpha()

        Gets the alpha of the GeoJsonPoint. This is a value from 0 to 1, where 0 means the marker iscompletely transparent and 1 means the marker is completely opaque.

      • setAlpha

         void setAlpha(float alpha)

        Sets the alpha of the GeoJsonPoint. This is a value from 0 to 1, where 0 means the marker iscompletely transparent and 1 means the marker is completely opaque.

        Parameters:
        alpha - alpha value of the GeoJsonPoint
      • getAnchorU

         float getAnchorU()

        Gets the Anchor U coordinate of the GeoJsonPoint. Normalized to [0, 1], of the anchor fromthe left edge. This is equivalent to the same U value used in .

      • getAnchorV

         float getAnchorV()

        Gets the Anchor V coordinate of the GeoJsonPoint. Normalized to [0, 1], of the anchor fromthe top edge. This is equivalent to the same V value used in .

      • setAnchor

         void setAnchor(float anchorU, float anchorV)

        Sets the Anchor U and V coordinates of the GeoJsonPoint. The anchor point is specified inthecontinuous space [0.0, 1.0] x [0.0, 1.0], where (0, 0) is the top-left corner of the image,and (1, 1) is the bottom-right corner. The U & V values are the same U & V valuesused in anchor ()}.

        Parameters:
        anchorU - Anchor U coordinate of the GeoJsonPoint
        anchorV - Anchor V coordinate of the GeoJsonPoint
      • isDraggable

         boolean isDraggable()

        Gets whether the GeoJsonPoint is draggable

      • setDraggable

         void setDraggable(boolean draggable)

        Sets the GeoJsonPoint to be draggable

        Parameters:
        draggable - true if GeoJsonPoint is draggable, false if not draggable
      • isFlat

         boolean isFlat()

        Gets whether the GeoJsonPoint is flat

      • setFlat

         void setFlat(boolean flat)

        Sets the GeoJsonPoint to be flat

        Parameters:
        flat - true if GeoJsonPoint is flat, false if not flat
      • getIcon

         BitmapDescriptor getIcon()

        Gets a bitmap image for the GeoJsonPoint

      • setIcon

         void setIcon(BitmapDescriptor bitmap)

        Sets a bitmap image for the GeoJsonPoint

        Parameters:
        bitmap - bitmap descriptor for the GeoJsonPoint
      • getInfoWindowAnchorU

         float getInfoWindowAnchorU()

        Gets the info window anchor U coordinate of the GeoJsonPoint. Normalized to [0, 1], of theinfo window anchor from the left edge. This is equivalent to the same U value used in .

      • getInfoWindowAnchorV

         float getInfoWindowAnchorV()

        Gets the info window anchor V coordinate of the GeoJsonPoint. Normalized to [0, 1], of theinfo window anchor from the top edge. This is equivalent to the same V value used in .

      • setInfoWindowAnchor

         void setInfoWindowAnchor(float infoWindowAnchorU, float infoWindowAnchorV)

        Sets the info window anchor U and V coordinates of the GeoJsonPoint. This is specified inthe same coordinate system as the anchor. The U & V values are the same U & V valuesused in infoWindowAnchor.

        Parameters:
        infoWindowAnchorU - info window anchor U coordinate of the GeoJsonPoint
        infoWindowAnchorV - info window anchor V coordinate of the GeoJsonPoint
      • getRotation

         float getRotation()

        Gets the rotation of the GeoJsonPoint in degrees clockwise about the marker's anchor point

      • setRotation

         void setRotation(float rotation)

        Sets the rotation of the GeoJsonPoint in degrees clockwise about the marker's anchor point

        Parameters:
        rotation - rotation value of the GeoJsonPoint
      • setSnippet

         void setSnippet(String snippet)

        Sets the snippet of the GeoJsonPoint

        Parameters:
        snippet - sets the snippet value of the GeoJsonPoint
      • setTitle

         void setTitle(String title)

        Sets the title of the GeoJsonPoint

        Parameters:
        title - title value of the GeoJsonPoint
      • isVisible

         boolean isVisible()

        Gets whether the GeoJsonPoint is visible

      • setVisible

         void setVisible(boolean visible)

        Sets whether the GeoJsonPoint is visible

        Parameters:
        visible - true if GeoJsonPoint is visible, false if not visible
      • toMarkerOptions

         MarkerOptions toMarkerOptions()

        Gets a new MarkerOptions object containing styles for the GeoJsonPoint

      • getZIndex

         float getZIndex()

        Gets the z index of the GeoJsonLineString

      • setZIndex

         void setZIndex(float zIndex)

        Sets the z index of the GeoJsonLineString

        Parameters:
        zIndex - z index value of the GeoJsonPoint