Skip to content

geocoder_control not hidden when using screenshot_control #169

@itendswells

Description

@itendswells

I am using mapgl within a shiny app to display census data. I've added the screenshot control, geocoder control and several other controls including a custom control to the map. When I use the screenshot control to download an image all of the controls except for geocoder control are properly hidden in the image, but the geocoder remains. I also notice that the formatting of the search icon is messed up in the screenshot image as well, not sure if that is related somehow.

How the map looks in the shiny app:
Image

How the map looks in the png downloaded by the screenshot control:
Image

Code for a minimal reproducible example:

maplibre(projection = "mercator") %>% 
  add_screenshot_control(hide_controls = T) %>% 
  add_geocoder_control()

Downloaded image:
Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions