Class GpxImporter.GpxImporterData

  • Enclosing class:
    GpxImporter

    public static class GpxImporter.GpxImporterData
    extends java.lang.Object
    Utility class containing imported GPX and marker layers, and a task to run after they are added to MapView.
    • Field Detail

      • gpxLayer

        private final GpxLayer gpxLayer
        The imported GPX layer. May be null if no GPX data.
      • postLayerTask

        private final java.lang.Runnable postLayerTask
        The task to run after GPX and/or marker layer has been added to MapView.
    • Constructor Detail

      • GpxImporterData

        public GpxImporterData​(GpxLayer gpxLayer,
                               GpxRouteLayer gpxRouteLayer,
                               MarkerLayer markerLayer,
                               java.lang.Runnable postLayerTask)
        Constructs a new GpxImporterData.
        Parameters:
        gpxLayer - The imported GPX layer. May be null if no GPX data.
        gpxRouteLayer - The imported GPX route layer. May be null if no GPX route.
        markerLayer - The imported marker layer. May be null if no marker.
        postLayerTask - The task to run after GPX and/or marker layer has been added to MapView.
    • Method Detail

      • getGpxLayer

        public GpxLayer getGpxLayer()
        Returns the imported GPX layer. May be null if no GPX data.
        Returns:
        the imported GPX layer. May be null if no GPX data.
      • getGpxRouteLayer

        public GpxRouteLayer getGpxRouteLayer()
        Returns the imported GPX route layer. May be null if no GPX data.
        Returns:
        the imported GPX route layer. May be null if no GPX data.
      • getMarkerLayer

        public MarkerLayer getMarkerLayer()
        Returns the imported marker layer. May be null if no marker.
        Returns:
        the imported marker layer. May be null if no marker.
      • getPostLayerTask

        public java.lang.Runnable getPostLayerTask()
        Returns the task to run after GPX and/or marker layer has been added to MapView.
        Returns:
        the task to run after GPX and/or marker layer has been added to MapView.