How can I make my tooltips update when I change years on this map?
http://argis.ualr-iea.org/dash_new_design/uninsured_map.html
Using the select box, I can get the style to change but I can't figure out how to update the numbers in the tooltip.
leaflet
How can I make my tooltips update when I change years on this map?
http://argis.ualr-iea.org/dash_new_design/uninsured_map.html
Using the select box, I can get the style to change but I can't figure out how to update the numbers in the tooltip.
Best Answer
Use the
setToolTipContent()
method. See the documentation here (it's hidden in the expandable part of the documentation "Tooltip methods inherited from Layer")