4

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.

2 Answers 2

5

Use the setToolTipContent() method. See the documentation here (it's hidden in the expandable part of the documentation "Tooltip methods inherited from Layer")

2

This is a little late, but if you are wondering why the accepted answer doesn't work, it's because the correct function name is setTooltipContent(), where tip is not capitalised.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.