coregis / cbf-programs-map-2023

Rebranding and other updates to the Raise Your Hand Texas Programs Map
GNU General Public License v3.0
0 stars 0 forks source link

Legislative district names now only show in popups if the districts are being displayed on the map #9

Closed eldang closed 11 months ago

eldang commented 11 months ago

I think this resolves #8 . Basically when I wrote the expandDistrictInfo() function I assumed that either House or Senate districts would always be shown, so never considered the possibility that neither is appropriate. I've just added a check for that case.

One lingering effect that I'm not thrilled with is that some of the popups end up with a horizontal line as their last content, so I'm going to make a separate PR to sort that out. That way you can compare results and see which you prefer.