data("bart_segments")
props <- list(
tooltip = use_tooltip(
html = "{{from_name}} to {{to_name}}",
style = "background: steelBlue; border-radius: 5px;"
)
)
# The picking object of the hexagon layer offers
# a property that contains the list of points of the hexagon.
# You can iterate over this list as shown below.
data("sf_bike_parking")
html = "
{{position.0}}, {{position.1}}
Count: {{points.length}}
{{#points}}{{address}}{{/points}}
"
Run the code above in your browser using DataLab