Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Compatibility with leaflet 1.X #23

Open
erkinsergey opened this issue May 14, 2018 · 0 comments
Open

Compatibility with leaflet 1.X #23

erkinsergey opened this issue May 14, 2018 · 0 comments

Comments

@erkinsergey
Copy link

The current version is not updated for a long time and is incompatible with current leaflet 1.x.
When using this version of leaflet there are errors and warnings that do not allow working with the plugin.
I was able to start it in the work as follows:
in source file rlayer-src.js find the line

R.Layer = L.Class.extend({
	includes: L.Mixin.Events,

and replace it with

R.Layer = (L.version < "1.0" ? L.Class : L.Layer).extend({
	includes: (L.version < "1.0" ? L.Mixin.Events : []),

After that the plugin worked without problems.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant