Learn R Programming

mapdeck (version 0.3.5)

light_settings: Light Settings

Description

List object containg light settings.

Arguments

Details

Available in add_geojson, add_pointcloud and add_polygon

  • numberOfLights - the number of lights. Maximum of 5

  • lightsPosition - vector of x, y, z coordinates. Must be 3x the nubmer of lights

  • ambientRatio - the ambient ratio of the lights

Examples

Run this code

light <- list(
  lightsPosition = c(-150, 75, 0)
  , numberOfLights = 1
  , ambientRatio = 0.2
)

Run the code above in your browser using DataLab