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 xyz.jpenilla.squaremap.api.marker.Marker
circle, ellipse, icon, icon, icon, markerOptions, markerOptions, markerOptions, markerOptionsMatch, multiPolygon, multiPolygon, multiPolyline, multiPolyline, polygon, polygon, polygon, polygon, polyline, polyline, rectangle
-
Method Details
-
point
Get the point where this icon will be located at- Returns:
- point
-
point
Set a new location for this icon marker- Parameters:
point- new point
-
tooltipAnchor
Get the coordinates of the point from which popups will "open", relative to the icon anchor.- Returns:
- point
-
tooltipAnchor
Set the coordinates of the point from which popups will "open", relative to the icon anchor.- Parameters:
tooltipAnchor- new point
-
anchor
Get the coordinates of the "tip" of the icon (relative to its top left corner). The icon will be aligned so that this point is at the marker's geographical location. Centered by default if size is specified.- Returns:
- point
-
anchor
Set the coordinates of the "tip" of the icon (relative to its top left corner). The icon will be aligned so that this point is at the marker's geographical location. Centered by default if size is specified.- Parameters:
anchor- new point
-
image
Get the key for the currently used image- Returns:
- key
-
image
Set the image to use for this icon. Must be registered with the icon registry- Parameters:
image- new image- See Also:
-
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
public int hashCode()
-