onAttach abstract method

void onAttach(
  1. MapViewBase mapView
)

Called when adding MapViewLifecycleListener to the map view.

If the map view does not have render target attached at the time of adding the listener, then this method will be called later, after render target is attached. This means that the map view it receives is always fully initialized.

Can be used to implement the logic to create and add visual components to the map view.

  • mapView The map view to attach to.

Implementation

void onAttach(MapViewBase mapView);