Class StaticMapsRequest.Markers

  • All Implemented Interfaces:
    com.google.maps.internal.StringJoin.UrlValue
    Enclosing class:
    StaticMapsRequest

    public static class StaticMapsRequest.Markers
    extends java.lang.Object
    implements com.google.maps.internal.StringJoin.UrlValue
    • Constructor Detail

      • Markers

        public Markers()
    • Method Detail

      • size

        public void size​(StaticMapsRequest.Markers.MarkersSize size)
        Specifies the size of marker. If no size parameter is set, the marker will appear in its default (normal) size.
        Parameters:
        size - The size of the markers.
      • color

        public void color​(java.lang.String color)
        Specifies a 24-bit color (example: color=0xFFFFCC) or a predefined color from the set {black, brown, green, purple, yellow, blue, gray, orange, red, white}.
        Parameters:
        color - The color of the markers.
      • label

        public void label​(java.lang.String label)
        Specifies a single uppercase alphanumeric character from the set {A-Z, 0-9}.
        Parameters:
        label - The label to add to markers.
      • customIcon

        public void customIcon​(java.lang.String url,
                               StaticMapsRequest.Markers.CustomIconAnchor anchorPoint)
        Set a custom icon for these markers.
        Parameters:
        url - URL for the custom icon.
        anchorPoint - The anchor point for this custom icon.
      • customIcon

        public void customIcon​(java.lang.String url,
                               StaticMapsRequest.Markers.CustomIconAnchor anchorPoint,
                               int scale)
        Set a custom icon for these markers.
        Parameters:
        url - URL for the custom icon.
        anchorPoint - The anchor point for this custom icon.
        scale - Set the image density scale (1, 2, or 4) of the custom icon provided.
      • addLocation

        public void addLocation​(java.lang.String location)
        Add the location of a marker. At least one is required.
        Parameters:
        location - The location of the added marker.
      • addLocation

        public void addLocation​(LatLng location)
        Add the location of a marker. At least one is required.
        Parameters:
        location - The location of the added marker.
      • toUrlValue

        public java.lang.String toUrlValue()
        Specified by:
        toUrlValue in interface com.google.maps.internal.StringJoin.UrlValue