Skip to content

HarpGL Layer does not implement interface method onRemoved #8

@david-schopf

Description

@david-schopf

When leaflet (1.5.1) has removed a layer from the map it calls "onRemove" on the layer.
Therefore all subclasses should implement a "onRemove" method.

See https://github.com/Leaflet/Leaflet/blob/master/src/layer/Layer.js lines 121-130

Unfortunately, the HarpGL layer is missing the onRemove method and therefore an error is thrown at the leaflet (Layer.js) call in line 185: onRemove is not a function.

This happens when harpGL.removeFrom(map) is called.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions