Skip to content

Errror in tmapLeafletDataPlot.tm_data_polygon: object 'shpTM_match' not found in "view" mode #1218

@ValentineHerr

Description

@ValentineHerr

In the dev version of your packages (which I had to install to deal with glitch related to issues #1197) tm_polygons, tm_fills and tm_borders give an error in view mode.

The error is:
Error in tmapLeafletDataPlot.tm_data_polygons(a = list(), shpTM = list( : object 'shpTM_match' not found

Here is a reproducible example.

tmap_mode("view")

data(World)
Africa = World[World$continent == "Africa", ]
Africa_border = sf::st_make_valid(sf::st_union(sf::st_buffer(Africa, 0.001))) # slow and ugly

# without specifications
tm_shape(Africa_border) + tm_polygons()
tm_shape(Africa_border) + tm_fill()
tm_shape(Africa_border) + tm_borders()

I need the view mode for my shiny app. I had no error with my border in the CRAN package (v.2) but I need the dev version because I have two layers of symbols and the symbols were disapearing from one layer or the other (see #1197). But in the dev version it is now the border layer that is causing issues ! :-/

Note: tm_shape(Africa_border) + tm_lines() works fine in view mode

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