MapMarkerClusterImageStyle.withAnchor constructor - MapMarkerClusterImageStyle - mapview library - Dart API
MapMarkerClusterImageStyle.withAnchor
MapMarkerClusterImageStyle.withAnchor constructor
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.
-
imageThe map image for the cluster marker. -
anchorThe anchor point for the marker image which specifies the position offset relative to the cluster's position.
Implementation
factory MapMarkerClusterImageStyle.withAnchor(MapImage image, Anchor2D anchor) => $prototype.withAnchor(image, anchor);