Skip to content

Commit

Permalink
v0.3.1
Browse files Browse the repository at this point in the history
  • Loading branch information
crazycapivara committed Jul 1, 2020
1 parent bc05c2e commit 1ff48a1
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 6 deletions.
4 changes: 2 additions & 2 deletions DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Package: mapboxer
Title: An R Interface to 'Mapbox GL JS'
Version: 0.3.0
Date: 2020-06-30
Version: 0.3.1
Date: 2020-07-01
Authors@R: person("Stefan", "Kuethe", email = "crazycapivara@gmail.com", role = c("aut", "cre"))
Maintainer: Stefan Kuethe <crazycapivara@gmail.com>
Description: Makes 'Mapbox GL JS' <https://docs.mapbox.com/mapbox-gl-js/api/>,
Expand Down
4 changes: 4 additions & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# mapboxer 0.3.1

* Added support for `mapbox_source` objects as `data` parameter in `set_data`.

# mapboxer 0.3.0

* Added `mapboxer_proxy` to update map in Shiny apps:
Expand Down
2 changes: 1 addition & 1 deletion R/mapboxer-proxy.R
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ mapboxer_proxy <- function(shiny_id, session = shiny::getDefaultReactiveDomain()
)
}

#' Update a mapboxer object in a Shiny App
#' Update a mapboxer object in a Shiny app
#' @param proxy_obj A \code{\link{mapboxer_proxy}} object.
#' @param ... unused
#' @export
Expand Down
2 changes: 1 addition & 1 deletion R/mapboxer.R
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#' Create a mapboxer widget
#'
#' @param source A \link{mapbox_source} that is added to the map with the ID \code{mapboxer}.
#' @param source A \link{mapbox_source} that is added to the map with the ID \code{MAPBOXER}.
#' @param style The map's Mapbox style.
#' @param ... The properties of the map, see \url{https://docs.mapbox.com/mapbox-gl-js/api/map/}.
#' @param width The width of the widget.
Expand Down
4 changes: 2 additions & 2 deletions R/sources.R
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,10 @@ mapbox_source <- function(type, ...) {
structure(list(type = type, ...), class = "mapbox_source")
}

#' Convert a data object to a Mapbox geojson source
#' Convert a data object to a Mapbox GeoJSON source
#' @param data A data frame that contains longitudes and latitudes in separate columns
#' or an \code{sf}-object.
#' @inheritDotParams mapbox_source
#' @inheritParams mapbox_source
#' @export
as_mapbox_source <- function(data, ...) {
UseMethod("as_mapbox_source")
Expand Down

0 comments on commit 1ff48a1

Please sign in to comment.