Skip to content

Leaflet-popup-container does not respect graph width when the map is embedded in an RMarkdown document #15

@martinschmelzer

Description

@martinschmelzer

A user on SO reported the following problem:

https://stackoverflow.com/questions/61686111/how-to-fix-distorted-interactive-popup-of-ggplot-figure-in-leaflet-map/61696804#61696804

I tried to locate the problem. One solution might be to set the minimum width equal to the graph width inside popup.js (line 42):

layer.bindPopup(pop, { maxWidth: 2000, minWidth: wdth });

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions