Package net.pl3x.map.core.markers.layer
Class CustomLayer
java.lang.Object
net.pl3x.map.core.Keyed
net.pl3x.map.core.markers.layer.Layer
net.pl3x.map.core.markers.layer.SimpleLayer
net.pl3x.map.core.markers.layer.WorldLayer
net.pl3x.map.core.markers.layer.CustomLayer
- All Implemented Interfaces:
JsonSerializable
Represents a custom layer of markers and other metadata.
-
Constructor Summary
ConstructorDescriptionCustomLayer
(@NotNull String key, @NotNull World world, @NotNull Supplier<@NotNull String> labelSupplier) Create a new custom layer. -
Method Summary
Methods inherited from class net.pl3x.map.core.markers.layer.WorldLayer
getOptions, getWorld, setOptions
Methods inherited from class net.pl3x.map.core.markers.layer.SimpleLayer
addMarker, clearMarkers, getMarkers, hasMarker, registeredMarkers, removeMarker
Methods inherited from class net.pl3x.map.core.markers.layer.Layer
equals, getCss, getLabel, getPane, getPriority, getUpdateInterval, getUpdateInterval, getZIndex, hashCode, isDefaultHidden, isLiveUpdate, setCss, setDefaultHidden, setLabel, setLabel, setLiveUpdate, setPane, setPriority, setShowControls, setUpdateInterval, setUpdateInterval, setZIndex, shouldShowControls, toJson, toString
-
Constructor Details
-
Method Details
-
load
-
fromJson
@NotNull public static @NotNull CustomLayer fromJson(@NotNull @NotNull World world, @NotNull @NotNull com.google.gson.JsonObject obj)
-