whenReady method

LeafletMap whenReady(
  1. Function fn
)

Runs the given function fn when the map gets initialized with a view (center and zoom) and at least one layer, or immediately if it's already initialized, optionally passing a function context.

Implementation

external LeafletMap whenReady(Function fn);