Skip to content

Commit

Permalink
update example
Browse files Browse the repository at this point in the history
  • Loading branch information
Damonsoul committed Nov 5, 2024
1 parent 48f62c8 commit 3a40319
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 7 deletions.
4 changes: 2 additions & 2 deletions R/addAreaPolygons.R
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@
#' library(leaflet)
#' m <- leaflet() %>% addTilesAmap()
#' m <- addAreaPolygons(m,
#' longitude = c(116.404, 116.407, 116.409),
#' latitude = c(39.916, 39.919, 39.917), coordinate = "WGS-84"
#' longitude = c(31.1, 39.919, 39.917),
#' latitude = c(121.0, 121.1, 121.2), coordinate = "WGS-84"
#' )
#' m
addAreaPolygons <- function(map, longitude, latitude, coordinate = "WGS-84") {
Expand Down
2 changes: 1 addition & 1 deletion R/areaCalculator.R
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
#'
#' @examples
#' area <- areaCalculator(
#' latitude = c(31.0, 31.1, 31.2),
#' latitude = c(31.1, 39.919, 39.917),
#' longitude = c(121.0, 121.1, 121.2), coordinate = "WGS-84"
#' )
areaCalculator <- function(longitude,
Expand Down
6 changes: 4 additions & 2 deletions man/addAreaPolygons.Rd

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

6 changes: 4 additions & 2 deletions man/areaCalculator.Rd

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

0 comments on commit 3a40319

Please sign in to comment.