Learn R Programming

googleway (version 2.0.0)

clear: clear map elements

Description

clears elements from a map

Usage

clear_markers(map, layer_id = NULL)

clear_circles(map, layer_id = NULL)

clear_heatmap(map, layer_id = NULL)

clear_traffic(map)

clear_transit(map)

clear_bicycling(map)

clear_polylines(map, layer_id = NULL)

clear_polygons(map, layer_id = NULL)

clear_rectangles(map, layer_id = NULL)

Arguments

map

a googleway map object created from google_map()

layer_id

id value of the layer to be removed from the map