R/readGeoJSON.R

Defines functions readGeoJSON

Documented in readGeoJSON

#' readGeoJSON()
#'
#' reads a geoJSON file from a specific path
#'
#' @param myGIo the widget object
#' @param file_path
#'
#' @return myGIO object with base layer attached
#' @export
readGeoJSON <- function(myGIO, file_path){

  #assert layer type
  myGIO$x$options$file_path <- file_path

  return(myGIO)
}
mortonanalytics/myGIO documentation built on May 24, 2020, 9:39 p.m.