Skip to content
Snippets Groups Projects
Commit bb034a0f authored by Bock, Andy's avatar Bock, Andy
Browse files

One mapview change

parent 21dbf420
No related branches found
No related tags found
1 merge request!95Travel time/Elev breaks; Maps for navigate
...@@ -355,7 +355,7 @@ if(all(is.na(tmp_POIs$Type_Elev))) { ...@@ -355,7 +355,7 @@ if(all(is.na(tmp_POIs$Type_Elev))) {
filter(sum(LENGTHKM) > (split_meters/1000)) %>% filter(sum(LENGTHKM) > (split_meters/1000)) %>%
ungroup() ungroup()
if(nrow(elev_pois_init == 0)){ if(nrow(elev_pois_init > 0)){
# Iterate through segs that need splitting # Iterate through segs that need splitting
for (i in c(1:max(elev_pois_init$iter))){ for (i in c(1:max(elev_pois_init$iter))){
...@@ -439,7 +439,8 @@ if(all(is.na(tmp_POIs$Type_Elev))) { ...@@ -439,7 +439,8 @@ if(all(is.na(tmp_POIs$Type_Elev))) {
nhd <- read_sf(nav_gpkg, nhd_flowline) nhd <- read_sf(nav_gpkg, nhd_flowline)
} }
mapview(filter(tmp_POIs, Type_Elev == 1), layer.name = "Elevation break POIs", col.regions = "blue") if(!all(is.na(tmp_POIs$Type_Elev)))
mapview(filter(tmp_POIs, Type_Elev == 1), layer.name = "Elevation break POIs", col.regions = "blue")
``` ```
```{r Time of travel POIs} ```{r Time of travel POIs}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment