Skip to content

Clickable space of polyline pop-ups are extremely large #81

Open
@jngtz

Description

@jngtz

click_space_polyline_leafgl

click_space_polyline_leafgl_2

The click space at all zoom levels is extremely large. I've been having trouble finding a way to control it (polyline feature is yellow in the image). I found this to be the case also when making mapview maps with the leafgl option turned on. It is correct when you click directly on the feature.

Below was my call to add the polylines - gm is a an sf linestring object, the CRS is WGS84. I'm using R. 4.2.1.

map <- leafgl::addGlPolylines(map, data = gm, color = "#E79978", opacity = 0.5, group = "grp1", weight = 1, popup = gm_popup)

Any help overcoming this issue is welcome. Thanks for the awesome job on this package. It's incredibly useful.

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