Raw API to polygons layer.

polygons_data(globe, data)

polygons_label(globe, label = "name")

polygons_geometry(globe, geometry = "geometry")

polygons_cap_color(globe, color = constant("ffffaa"))

polygons_side_color(globe, color = constant("ffffaa"))

polygons_altitude(globe, altitude = 0.1)

polygons_transition(globe, ms = 1000L)

polygons_on_click(globe, func)

polygons_on_right_click(globe, func)

polygons_on_hover(globe, func)

Arguments

globe

An object of class globe as returned by create_globe, or an object of class globeProxy as returned by globeProxy.

data

A data.frame containing arcs data.

label

Name containing label in data list or JavaScript function.

geometry

Name containing geometry in data list or JavaScript function.

color

A JavaScript function or constant, or name containing color in data list.

altitude

Name containing altitude in data list, a numeric value, or JavaScript function.

ms

Number of milliseconds. A value of 0 will size the cone immediately to their final altitude. New polygons are animated by rising them from the ground up.

func

JavaScript function as character vector.