How to fix the console error "Deprecated include of L.Mixin.Events" when I include a map with iframe?


I have the following error on my web page when I include the iframe given by the export tool

Deprecated include of L.Mixin.Events: this property will be removed in future releases, please inherit from L.Evented instead. Error at checkDeprecatedMixinEvents ( at Function.Class.extend ( at

What is the problem ? How can I fix it ?