• java.lang.Object
    • com.here.sdk.mapview.MapMarkerCluster.ImageStyle
  • Enclosing class:
    MapMarkerCluster

    public static final class MapMarkerCluster.ImageStyle
    extends java.lang.Object

    This class specifies the visual appearance of a cluster marker.

    • Field Summary

      Fields 
      Modifier and Type Field Description
      Anchor2D anchor
      The anchor point for the marker image which specifies the position offset relative to the cluster's position.
      MapImage image
      The map image for the cluster marker.
    • Constructor Summary

      Constructors 
      Constructor Description
      ImageStyle​(MapImage image)
      Creates a marker cluster image representation with default anchor.
      ImageStyle​(MapImage image, Anchor2D anchor)
      Creates a cluster marker image style using a map image with anchor.
    • Method Summary

      • Methods inherited from class java.lang.Object

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

      • image

        @NonNull
        public final MapImage image

        The map image for the cluster marker.

      • anchor

        @NonNull
        public final Anchor2D anchor

        The anchor point for the marker image which specifies the position offset relative to the cluster's position.

    • Constructor Detail

      • ImageStyle

        public ImageStyle​(@NonNull
                          MapImage image,
                          @NonNull
                          Anchor2D anchor)

        Creates a cluster marker image style using a map image with anchor.

        The anchor is a way of specifying position offset relative to image's dimensions on the screen. For example, (0, 0) places the top-left corner of the image at the cluster's position. (1, 1) would place the bottom-right corner of the image at the cluster's position.

        Parameters:
        image -

        The map image for the cluster marker.

        anchor -

        The anchor point for the marker image which specifies the position offset relative to the cluster's position.

      • ImageStyle

        public ImageStyle​(@NonNull
                          MapImage image)

        Creates a marker cluster image representation with default anchor.

        Parameters:
        image -

        The map image for the cluster marker.