Skip to content

Compatibility with leaflet 1.X #23

@erkinsergey

Description

@erkinsergey

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions