Class hierarchy
The components exposed by React-Leaflet inherit from the following hierarchy.
Classes indicated as abstract can be extended to create custom components, while other components should be used as provided and cannot be extended.
React.Component
ControlledLayer
(abstract): base class used byLayersControl
to handle adding and removing its layers.MapControl
(abstract): base class for all controls, handles positioning.MapEvented
(abstract): base class handling extracting and updating Leaflet events.Map
: top-level component instantiating a Leaflet map and providing it to its children.MapComponent
(abstract): base class handling map panes.DivOverlay
(abstract)MapLayer
(abstract): base class for all map layers, handling adding and removing the layer from the map.GridLayer
(abstract): base class for tile layers, handles opacity and z-index.ImageOverlay
LayerGroup
Marker
Path
(abstract): handles styling of vector layers.