Class Icon
java.lang.Object
xyz.jpenilla.squaremap.api.marker.Marker
xyz.jpenilla.squaremap.api.marker.Icon
Icon marker, used to create an icon with an image on a map
-
Method Summary
Modifier and TypeMethodDescriptionanchor()Get the coordinates of the "tip" of the icon (relative to its top left corner).voidSet the coordinates of the "tip" of the icon (relative to its top left corner).booleaninthashCode()image()Get the key for the currently used imagevoidSet the image to use for this icon.point()Get the point where this icon will be located atvoidSet a new location for this icon markerintsizeX()Get the x sizevoidsizeX(int size) Set the x sizeintsizeZ()Get the z sizevoidsizeZ(int size) Set the z sizeGet the coordinates of the point from which popups will "open", relative to the icon anchor.voidtooltipAnchor(@NonNull Point tooltipAnchor) Set the coordinates of the point from which popups will "open", relative to the icon anchor.Methods inherited from class Marker
circle, ellipse, icon, icon, icon, markerOptions, markerOptions, markerOptions, markerOptionsMatch, multiPolygon, multiPolygon, multiPolyline, multiPolyline, polygon, polygon, polygon, polygon, polyline, polyline, rectangle
-
Method Details
-
point
-
point
-
tooltipAnchor
-
tooltipAnchor
-
anchor
-
anchor
-
image
-
image
-
sizeX
public int sizeX()Get the x size- Returns:
- x size
-
sizeX
public void sizeX(int size) Set the x size- Parameters:
size- new size
-
sizeZ
public int sizeZ()Get the z size- Returns:
- z size
-
sizeZ
public void sizeZ(int size) Set the z size- Parameters:
size- new size
-
equals
-
hashCode
-