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.
Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. It only takes a minute to sign up.
Sign up to join this communityHow 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.
Use the setToolTipContent()
method. See the documentation here (it's hidden in the expandable part of the documentation "Tooltip methods inherited from Layer")
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.