question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Deprecated include of L.Mixin.Events

See original GitHub issue
  • I’m reporting a bug, not asking for help
  • I’ve looked at the documentation to make sure the behaviour is documented and expected
  • I’ve searched through the issues to make sure it’s not yet reported
  • I’m sure this is a Leaflet Draw code issue, not an issue with my own code nor with the framework I’m using (Cordova, Ionic, Angular, React…)

How to reproduce

  • Leaflet version I’m using: 1.2.0
  • Leaflet Draw version I’m using: 0.4.12
  • Browser (with version) I’m using: Chrome 60.0.3112.101
  • OS/Platform (with version) I’m using: Windows 10

What behaviour I’m expecting and which behaviour I’m seeing

No warnings in the console

Minimal example reproducing the issue

https://jsfiddle.net/barbalex/87qnj1wx Check the output in the console

Seems that L.Mixin.Events is deprecated since leaflet v1.1.0 (https://github.com/Leaflet/Leaflet/releases/tag/v1.1.0)

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:1
  • Comments:6 (1 by maintainers)

github_iconTop GitHub Comments

11reactions
PowerPancommented, Aug 25, 2017

I have already created a patch for that. I have created a Pull Request #772 and waiting for the approval

1reaction
John-Pcommented, Mar 25, 2019

@barbalex Ah yes, I made a typo. I am using leaflet 1.4.0 and leaflet draw 0.4.2. I was using the CDN from the end of the documentation which I didn’t notice appears to be quite out of date. Edit: I’ve just changed the CDN URL to be up to date and all the warnings are gone. Excellent.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Deprecated include of L.Mixin.Events · Issue #425 - GitHub
I'm currently working on a small react project and getting warnings about: Deprecated include of L.Mixin.Events: this property will be removed ...
Read more >
Deprecated include of L.Mixin.Events (leaflet) - Stack Overflow
I'm having a problem with leaflet. I tried to insert an ajax script in my index.php in order to add a GeoJSON file...
Read more >
Fixed deprecated include of L.Mixin.Events (#21 ... - CIBioFi
Fixed deprecated include of L. Mixin. Events (#21) and updated leaflet dependency. 186db25678 - Git para CIBioFi.
Read more >
Deprecated methods in L.Mixin.Events (#51) · Issues - GitLab
In my console I see some deprecation warnings by chrome browser: Deprecated include of L.Mixin.Events: this property will be removed in future ......
Read more >
Not yet compatible with wordpress 5.6? - WordPress.org
Deprecated include of L.Mixin.Events: this property will be removed in future releases, please inherit from L.Evented instead.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found