Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
Expand Up @@ -58,5 +58,5 @@ Suggests:
testthat (>= 3.0.0)
URL: https://github.com/trafficonese/leaflet.extras, https://trafficonese.github.io/leaflet.extras/
BugReports: https://github.com/trafficonese/leaflet.extras/issues
RoxygenNote: 7.3.2
RoxygenNote: 7.3.3
Config/testthat/edition: 3
2 changes: 1 addition & 1 deletion R/measure-path.R
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ measurePathDependencies <- function() {
#' @examples
#' \donttest{
#' geoJson <- readr::read_file(
#' "https://rawgit.com/benbalter/dc-maps/master/maps/ward-2012.geojson"
#' "https://github.com/benbalter/dc-maps/blob/master/maps/ward-2012.geojson"
#' )
#'
#' leaflet() %>%
Expand Down
4 changes: 2 additions & 2 deletions R/omnivore.R
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ invokeJSAddMethod <- function(
#' ## addGeoJSONv2
#' \donttest{
#' geoJson <- readr::read_file(
#' "https://rawgit.com/benbalter/dc-maps/master/maps/historic-landmarks-points.geojson"
#' "https://github.com/benbalter/dc-maps/blob/master/maps/historic-landmarks-points.geojson"
#' )
#'
#' leaflet() %>%
Expand Down Expand Up @@ -238,7 +238,7 @@ legendOptions <- function(
#' ## addGeoJSONChoropleth
#' \donttest{
#' geoJson <- readr::read_file(
#' "https://rawgit.com/benbalter/dc-maps/master/maps/ward-2012.geojson"
#' "https://github.com/benbalter/dc-maps/blob/master/maps/ward-2012.geojson"
#' )
#'
#' leaflet() %>%
Expand Down
2 changes: 1 addition & 1 deletion R/webGLHeatmap.R
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ addWebGLHeatmap <- function(
#' ## addWebGLGeoJSONHeatmap
#' \donttest{
#' geoJson <- readr::read_file(
#' "https://rawgit.com/benbalter/dc-maps/master/maps/historic-landmarks-points.geojson"
#' "https://github.com/benbalter/dc-maps/blob/master/maps/historic-landmarks-points.geojson"
#' )
#'
#' leaflet() %>%
Expand Down
2 changes: 1 addition & 1 deletion inst/examples/TopoJSON.R
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ leaflet() %>%

#' We plot some crime stats by district. Notice the convenient "propsToHTMLTable" function for pretty popups.
#'
fName <- "https://rawgit.com/TrantorM/leaflet-choropleth/gh-pages/examples/basic_topo/crimes_by_district.topojson"
fName <- "https://github.com/TrantorM/leaflet-choropleth/blob/gh-pages/examples/basic_topo/crimes_by_district.topojson"
topoJson <- readr::read_file(fName)

leaflet() %>%
Expand Down
2 changes: 1 addition & 1 deletion inst/examples/draw.R
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ leaflet() %>% addTiles() %>%
#' ### Add GeoJSON and then edit it
#' The layerId of the GeoJSON has to match the targetLayerId of `addDrawToolbar`. Also notice that we have to simplify the geometry quite a bit using `rmapshaper::ms_simplify`, otherwise the edit feature is very slow and will even hang the browser.

fName <- "https://rawgit.com/benbalter/dc-maps/master/maps/ward-2012.geojson"
fName <- "https://github.com/benbalter/dc-maps/blob/master/maps/ward-2012.geojson"

geoJson <- readr::read_file(fName)
geoJson2 <- rmapshaper::ms_simplify(geoJson, keep = 0.01)
Expand Down
10 changes: 5 additions & 5 deletions inst/examples/geojsonv2.R
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ leaf <- leaflet() %>%
#'

# Read as a R list
fName <- "https://rawgit.com/benbalter/dc-maps/master/maps/ward-2012.geojson"
fName <- "https://github.com/benbalter/dc-maps/blob/master/maps/ward-2012.geojson"
geoJson <- jsonlite::fromJSON(readr::read_file(fName))

factpal <- colorFactor(topo.colors(nrow(geoJson$features$properties)),
Expand Down Expand Up @@ -155,7 +155,7 @@ leaf.world %>%
#'
#' Here again we don't do any pre-processing in R, everything is done on the browser side.

fName <- "https://rawgit.com/benbalter/dc-maps/master/maps/ward-2012.geojson"
fName <- "https://github.com/benbalter/dc-maps/blob/master/maps/ward-2012.geojson"

geoJson <- readr::read_file(fName)

Expand Down Expand Up @@ -200,7 +200,7 @@ leaf %>% setView(-77.0369, 38.9072, 11) %>%
#'
#' ### Example 1
#' Here we plot GeoJSON with Point data using customized markers
jsURL <- "https://rawgit.com/Norkart/Leaflet-MiniMap/master/example/local_pubs_restaurant_norway.js"
jsURL <- "https://github.com/Norkart/Leaflet-MiniMap/blob/master/example/local_pubs_restaurant_norway.js"
v8 <- V8::v8()
v8$source(jsURL)
geoJson <- v8$get("pubsGeoJSON")
Expand All @@ -224,7 +224,7 @@ leaf %>%
#' Here we plot arts/cultural places and historic places in Washington DC. Notice that we are not loading the GeoJSONs in R, but directly downloading them and parsing them int the browser. We are also specifying popups content to be generated from the feature properties. We are also using marker clustering to cluster our points.

artsAndCultures <- "https://rawgit.com/benbalter/dc-maps/master/maps/arts-and-culture-organizations-as-501-c-3.geojson"
historicLandmarks <- "https://rawgit.com/benbalter/dc-maps/master/maps/historic-landmarks-points.geojson"
historicLandmarks <- "https://github.com/benbalter/dc-maps/blob/master/maps/historic-landmarks-points.geojson"

artsAndCulture <- makeAwesomeIcon(icon = "paintbrush", library = "ion", markerColor = "red", iconColor = "black")
historicLandmark <- makeAwesomeIcon(icon = "flag", library = "ion", markerColor = "green", iconColor = "black")
Expand Down Expand Up @@ -256,7 +256,7 @@ leaf %>% setView(-77.0369, 38.9072, 12) %>%
#' ### Example 3
#'
#' This time in addition to the points we also plot the heatmap
fName <- "https://rawgit.com/benbalter/dc-maps/master/maps/historic-landmarks-points.geojson"
fName <- "https://github.com/benbalter/dc-maps/blob/master/maps/historic-landmarks-points.geojson"

geoJson <- readr::read_file(fName)

Expand Down
2 changes: 1 addition & 1 deletion inst/examples/heatmaps.R
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ leaflet(quakes) %>% addProviderTiles(providers$CartoDB.DarkMatter) %>%
#' Roughly 1500 points dataset
#'
library(sp)
jsURL <- "https://rawgit.com/Norkart/Leaflet-MiniMap/master/example/local_pubs_restaurant_norway.js"
jsURL <- "https://github.com/Norkart/Leaflet-MiniMap/blob/master/example/local_pubs_restaurant_norway.js"
v8 <- V8::v8()
v8$source(jsURL)
geoJson <- geojsonio::as.json(v8$get("pubsGeoJSON"))
Expand Down
2 changes: 1 addition & 1 deletion inst/examples/measurePath.R
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ library(leaflet.extras)

#' ### Add shapes with measurements enabled

fName <- "https://rawgit.com/benbalter/dc-maps/master/maps/ward-2012.geojson"
fName <- "https://github.com/benbalter/dc-maps/blob/master/maps/ward-2012.geojson"

geoJson <- readr::read_file(fName)

Expand Down
2 changes: 1 addition & 1 deletion inst/examples/search.R
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ leaflet(nc) %>%

#' ### Search GeoJSON Markers
# GeoJSON w/ Markers ----
jsURL <- "https://rawgit.com/Norkart/Leaflet-MiniMap/master/example/local_pubs_restaurant_norway.js"
jsURL <- "https://github.com/Norkart/Leaflet-MiniMap/blob/master/example/local_pubs_restaurant_norway.js"
v8 <- V8::v8()
v8$source(jsURL)
geoJson <- v8$get("pubsGeoJSON")
Expand Down
2 changes: 1 addition & 1 deletion inst/examples/webglHeatmaps.R
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ leaflet(quakes) %>% addProviderTiles(providers$CartoDB.DarkMatter) %>%
#' Roughly 1500 points dataset
#'
library(sp)
jsURL <- "https://rawgit.com/Norkart/Leaflet-MiniMap/master/example/local_pubs_restaurant_norway.js"
jsURL <- "https://github.com/Norkart/Leaflet-MiniMap/blob/master/example/local_pubs_restaurant_norway.js"
v8 <- V8::v8()
v8$source(jsURL)
geoJson <- geojsonio::as.json(v8$get("pubsGeoJSON"))
Expand Down
14 changes: 7 additions & 7 deletions man/addBounceMarkers.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/addGroupedLayersControl.Rd

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

22 changes: 10 additions & 12 deletions man/geodesics.Rd

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

6 changes: 3 additions & 3 deletions man/heatmap.Rd

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

2 changes: 1 addition & 1 deletion man/measure-path.Rd

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

24 changes: 11 additions & 13 deletions man/omnivore.Rd

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

Loading