mapview icon indicating copy to clipboard operation
mapview copied to clipboard

Changing row used as Feature ID

Open lgraham97 opened this issue 3 years ago • 1 comments

I am trying to display a pop up using a data frame with multiple rows and columns.

I am currently using:

leaflet() %>%
  addProviderTiles("OpenStreetMap") %>%
  addPolygons(data = County_Durhamll,     #county_durhamll is my shape file i would like the popup to be displayed on  
           popup = popupTable(contact_details_tbl, zcol = 1:3, className=NULL))  #contact_details_tbl is the data table __ want to display  

My table has 34 rows and I would like to display a specific row from this data frame however it automatically displays the bottom row from the table.

It is displaying the correct columns however I would like to know if there is a way I can display the 24th row as my Feature ID?

(I am using the popupTable function)

lgraham97 avatar May 23 '22 13:05 lgraham97

Hi @lgraham97 can you provide County_Durhamll and contact_details_tbl so I can reproduce your issue?

tim-salabim avatar Jun 04 '22 13:06 tim-salabim