Skip to content

While using vectorGrid.protobuf for displaying vector tiles on map i was not able to capture mouse events initially until when i zoomed out to minzoom level #284

Open
@VassarL

Description

this is code snippet for displaying the vector tile layer on the map
vectorTileLayer = new (L as any).vectorGrid.protobuf(layer.url, {
...layer.layerOptions,
interactive: true,
});
because of the interactive = true the pointer events are being enabled but this is causing additional issue.when the map is initially loaded no mouse event is working even drag and click also not working until when the map is zoomed out to minimum zoom level after then everything is working fine.

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