Skip to contents

quick way to open a map html widget in local browser (saved as tempfile you can share)

Usage

map2browser(x)

Arguments

x

output of ejam2map() or mapfastej() or mapfast()

Value

launches local browser to show x, but also returns name of tempfile that is the html widget

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)
} # }