Package it.tidalwave.mapviewer.javafx
Class MapView.OverlayHelper
java.lang.Object
it.tidalwave.mapviewer.javafx.MapView.OverlayHelper
- Enclosing class:
MapView
This helper class provides methods useful for creating map overlays.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidadd(javafx.scene.Node node) Adds aNodeto the overlay.voidaddAll(Collection<? extends javafx.scene.Node> nodes) Adds multipleNodes to the overlay.getArea()Returns the area rendered in the map view.toMapViewPoint(MapCoordinates coordinates) Returns a map view point corresponding to the given coordinates.
-
Constructor Details
-
OverlayHelper
public OverlayHelper()
-
-
Method Details
-
add
public void add(@Nonnull javafx.scene.Node node) Adds aNodeto the overlay.- Parameters:
node- theNode
-
addAll
Adds multipleNodes to the overlay.- Parameters:
nodes- theNodes
-
toMapViewPoint
Returns a map view point corresponding to the given coordinates.. This view point must be used to draw to the overlay.- Parameters:
coordinates- the coordinates- Returns:
- a map view point corresponding to the given coordinates
-
getArea
Returns the area rendered in the map view..- Returns:
- the area rendered in the map view
-