Skip to content

Commit

Permalink
Merge pull request #4 from eodaGmbH/dev_nfr
Browse files Browse the repository at this point in the history
Dev nfr
  • Loading branch information
Friessn authored Jan 11, 2024
2 parents f11fe94 + a151063 commit d4570ee
Show file tree
Hide file tree
Showing 10 changed files with 77 additions and 16 deletions.
2 changes: 2 additions & 0 deletions NAMESPACE
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,12 @@

export(Layer)
export(Marker)
export(MarkerOptions)
export(add_call)
export(add_control)
export(add_layer)
export(add_marker)
export(mapOptions)
export(maplibre)
export(maplibreOutput)
export(renderMaplibre)
Expand Down
13 changes: 11 additions & 2 deletions R/maplibre.R
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#' <Add Title>
#' Create a Map Object for MapLibre GL
#'
#'
#' <Add Description>
#'
#' @import htmlwidgets
#'
Expand Down Expand Up @@ -30,6 +30,15 @@ maplibre <- function(map_options = mapOptions(), width = "100%", height = NULL,
)
}

#' Add Map Options to a Map Object
#'
#' @param style
#' @param ...
#'
#' @return
#' @export
#'
#' @examples
mapOptions <- function(style = basemaps$carto$dark_matter, ...) {
list(style = style, ...)
}
Expand Down
8 changes: 8 additions & 0 deletions R/marker.R
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,14 @@ Marker <- function(lngLat, popup , ...) {
return(mark)
}

#' Title
#'
#' @param ...
#'
#' @return
#' @export
#'
#' @examples
MarkerOptions <- function(...){
marker_options <- list(...)
stopifnot(sapply(marker_options[c("anchor", "color", "pitchAlignment", "rotationAlignment")], function(x){is.null(x) | is.character(x)}))
Expand Down
14 changes: 14 additions & 0 deletions man/Layer.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions man/Marker.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

14 changes: 14 additions & 0 deletions man/MarkerOptions.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

11 changes: 11 additions & 0 deletions man/add_marker.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 0 additions & 12 deletions man/hello.Rd

This file was deleted.

14 changes: 14 additions & 0 deletions man/mapOptions.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions man/maplibre.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit d4570ee

Please sign in to comment.