Class hierarchy
The components exposed by React-Leaflet inherit from the following hierarchy:
React.Component
ControlledLayer
: base class used byLayersControl
to handle adding and removing its layers.MapComponent
: base class handling extracting and updating Leaflet events.DivOverlay
Map
: top-level component instantiating a Leaflet map and providing it to its children.MapLayer
: base class for all map layers, handling adding and removing the layer from the map.GridLayer
: base class for tile layers, handles opacity and z-index.ImageOverlay
LayerGroup
Marker
Path
: handles styling of vector layers.
MapControl
: base class for all controls, handles positioning.