quick way to open a map html widget in local browser (saved as tempfile you can share)
Source:R/ejam2map.R
map2browser.Rd
quick way to open a map html widget in local browser (saved as tempfile you can share)
Arguments
- x
output of
ejam2map()
ormapfastej()
ormapfast()
Examples
pts = testpoints_100
mapfast(pts)
# out = ejamit(pts, radius = 1)
out = testoutput_ejamit_100pts_1miles
# See in RStudio viewer pane
ejam2map(out)
mapfastej(out$results_bysite[c(12,31),])
if (FALSE) { # \dontrun{
# See in local browser instead
ejam2map(out, browse = T)
# Open folder where interactive map
# .html file is saved, so you can share it:
x = ejam2map(out)
fname = map2browser(x)
# browseURL(dirname(fname)) # to open the temp folder
# file.copy(fname, "./map.html") # to copy map file to working directory
out <- testoutput_ejscreenapi_plus_5
mapfastej(out)
} # }