React-Leaflet aims to provide all the controls and layers provided by Leaflet, but it does not support any Leaflet plugin.
Adding layers and behaviors provided by plugins in your application should be relatively easy by extending one of the components provided by React-Leaflet (see the class hierarchy below to find the most relevant component to extend) and implementing the relevant lifecycle methods.
Make sure to read the how it works page of this documentation to understand what your custom component should use and eventually provide.
React.Component
ControlledLayer
: base class used byLayersControl
to handle adding and removing its layers.MapComponent
: base class handling extracting and updating Leaflet events.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.
Popup
Tooltip
MapControl
: base class for all controls, handles positioning.