Register a geojson map.

e_map_register(e, name, json)

e_map_register_p(name, json, session = shiny::getDefaultReactiveDomain())

Arguments

e

An echarts4r object as returned by e_charts.

name

Name of map, to use in e_map.

json

Geojson.

session

A valid Shiny session.

Details

e_map_register_p is not truly a proxy as it does not require a chart to function.

Examples

# NOT RUN {
json <- jsonlite::read_json("http://www.echartsjs.com/gallery/data/asset/geo/USA.json")

USArrests %>%
  dplyr::mutate(states = row.names(.)) %>%
  e_charts(states) %>%
  e_map_register("USA", json) %>%
  e_map(Murder, map = "USA") %>%
  e_visual_map(Murder)
# }