L.Class powers the OOP facilities of Leaflet and is used to create almost all of the Leaflet classes documented.
You can also use the following shortcut when you just need to make one additional method call.
You use L.Class.extend to define new classes, but you can use the same method on any class to inherit from it.
L.Class powers the OOP facilities of Leaflet and is used to create almost all of the Leaflet classes documented.