Package journeymap.api.v2.server.overlay
Class OverlayShapeProps
java.lang.Object
journeymap.api.v2.server.overlay.OverlayShapeProps
Style and visibility properties applied to every polygon in a single
ServerPolygon. Mirrors the subset of Overlay fields that are
meaningful for server-pushed overlays. Interactive listeners are not
supported in v1 and are therefore not represented here.-
Constructor Summary
ConstructorsConstructorDescriptionOverlayShapeProps(int fillColor, float fillOpacity, int strokeColor, float strokeWidth, float strokeOpacity, int displayOrder, int minZoom, int maxZoom, Set<Context.UI> activeUIs, Set<Context.MapType> activeMapTypes, @Nullable String label, @Nullable String title) -
Method Summary
-
Constructor Details
-
OverlayShapeProps
public OverlayShapeProps(int fillColor, float fillOpacity, int strokeColor, float strokeWidth, float strokeOpacity, int displayOrder, int minZoom, int maxZoom, Set<Context.UI> activeUIs, Set<Context.MapType> activeMapTypes, @Nullable @Nullable String label, @Nullable @Nullable String title) - Parameters:
fillColor- 0xRRGGBB; alpha is supplied separately as fillOpacityfillOpacity- 0.0 (transparent) to 1.0 (opaque)strokeColor- 0xRRGGBBstrokeWidth- pixels; 0 disables the strokestrokeOpacity- 0.0 to 1.0displayOrder- z-order among overlays; higher draws in front (default 1000)minZoom- minimum fullscreen zoom at which the overlay is visiblemaxZoom- maximum fullscreen zoom at which the overlay is visibleactiveUIs- which UIs (Fullscreen, Minimap, Webmap) the overlay is visible inactiveMapTypes- which map types (Day, Night, etc.) the overlay is visible inlabel- static label rendered with the polygon, or null for nonetitle- hover tooltip text, or null for none
-
-
Method Details
-
fillColor
public int fillColor() -
fillOpacity
public float fillOpacity() -
strokeColor
public int strokeColor() -
strokeWidth
public float strokeWidth() -
strokeOpacity
public float strokeOpacity() -
displayOrder
public int displayOrder() -
minZoom
public int minZoom() -
maxZoom
public int maxZoom() -
activeUIs
-
activeMapTypes
-
label
-
title
-
equals
-
hashCode
public int hashCode() -
toString
-