I have a shapefile which renders properly in ArcMap and sf, but does not render properly in rmd leaflet. I use leaflet to render other shapefiles with no problem. Attached is the shapefile which does not render properly, it simply shows a solid blue line in space. I get no error and cannot figure out if there's something wrong with project (shouldnt be since it works in other tools) or some other conflict. I'd welcome some suggestions on how to resolve what seems to be a simple issue. I'm labeled as a new user and am not allowed to upload the shapefile in any format . Note that I can render other shapefiles with no issues, and this particular shapefile works fine in other applications,
library(shiny)
library(leaflet)
library(sf)
library(readxl)
library(raster)
library(rgdal)
sf1 <- shapefile('./Instance/Course/shapeFiles/Demo_Pipeline_Route.shp') # this shapefile does not show up properly
map <- leaflet() %>%
addTiles(group = "Open Street")%>%
addPolylines(data = sf1, group = "Pipeline", color = "blue", opacity = 1)%>%
addLayersControl(
baseGroups = c("Open Street", "World Imagery")
)
map