Interface LeafletLayerTranslator
- All Known Implementing Classes:
HeatMapLayerLeafletLayerTranslator
,ImageLayerLeafletLayerTranslator
,TileLayerLeafletLayerTranslator
,VectorLayerLeafletLayerTranslator
,WMSTileLayerLeafletLayerTranslator
public interface LeafletLayerTranslator
Component that translates a
Layer
of type specified in the LayerTranslator
annotation
to LeafletLayerHolder
, containing Leaflet representation of the layer.
An implementation of the interface should be annotated with LayerTranslator
with specified the type of a layer that it can operate with.
When implementing a custom translator be sure to specify the correct
Order
to override the component's implementation.
-
Field Summary
Modifier and TypeFieldDescriptionstatic final int
Defines the highest precedence forOrdered
Leaflet layer translators of the platform.static final int
Defines the lowest precedence forOrdered
Leaflet layer translators of the platform. -
Method Summary
Modifier and TypeMethodDescriptionLeafletLayerHolder<? extends LeafletLayer>
translateLayer
(Layer layer) Returns an instance ofLeafletLayerHolder
, containing Leaflet representation of the given layer.
-
Field Details
-
HIGHEST_PLATFORM_PRECEDENCE
static final int HIGHEST_PLATFORM_PRECEDENCEDefines the highest precedence forOrdered
Leaflet layer translators of the platform.- See Also:
-
LOWEST_PLATFORM_PRECEDENCE
static final int LOWEST_PLATFORM_PRECEDENCEDefines the lowest precedence forOrdered
Leaflet layer translators of the platform.- See Also:
-
-
Method Details
-
translateLayer
Returns an instance ofLeafletLayerHolder
, containing Leaflet representation of the given layer.- Parameters:
layer
- to be translated- Returns:
- LeafletLayerHolder
-